LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

is there any example on how to create a bitmap from an array

I have a data array which i want to save as a bitmap and show on a canvas,

how can i do it?

is there aby example?

 

 

thanks

0 Kudos
Message 1 of 2
(2,964 Views)

Hi,

 

It's a two-step procedure:

 

  • First, plot the data on your canvas, probably using CanvasDrawPoint (, , ); there are three NI examples for Canvas: use Help / Find Examples
  • Second, you can save the canvas control to a file using SaveCtrlDisplayToFile from the toolbox library. As an alternative, you could use GetCtrlDisplayBitmap and then SaveBitmapToBMPFile.

 

Wolfgang

0 Kudos
Message 2 of 2
(2,959 Views)