LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

load canvas picture

Hi,

How can I Programmatically load a picture file (BMP) in a canvas ?

using CVI 6.0

Thank you,
0 Kudos
Message 1 of 2
(2,858 Views)
Very simple. Just:

GetBitmapFromFile(filePath, &bitmap);
CanvasDrawBitmap (panelHandle, PANEL_CANVAS, bitmap, VAL_ENTIRE_OBJECT, VAL_ENTIRE_OBJECT);

Where filePath is the path to the BMP file, and bitmap is an int.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(2,858 Views)