LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a simple way to save raw data as a BMP, JPEG & TIFF in LabWindows ver 5.0

I am using a Spot RT camera that stores image data into a buffer. I would like to save this data as a BMP, TIFF and JPEG. I need simple way to understand this process. Please help me.
Message 1 of 3
(3,471 Views)
There is a set of functions in CVI that allow you to work with bitmap data and files in the User Interface Library>>Bitmaps function group.

The NewBitmap function allows you to take raw data and create a bitmap resource that can be manipulated programmatically, assuming that you pass it the data correctly.

After that you can use the ClipboardPutBitmap function to place the bitmap somewhere so that it can be manipulated outside of your application, however it doesn't appear that you will be able to save it directly to a file with this group of functions. Although, it is probably significantly easier to use them than writing binary data to a file, which would be your only other option.

Jason Foster
Applications Engineer
National Instruments
www.ni.com/ask
Message 2 of 3
(3,471 Views)
Jason,

Thank you for the response, but what about the JPEG and the TIFF format. They are actually more important.

Vision Boy
Message 3 of 3
(3,471 Views)