LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Save Picture from Picture Control to my Computer (Urgent)?

Hello All,

I have a picture indicator that have a picture, my requirement is when i click save button the picture showing in the picture box save to my computer at specified location.

Screenshot is attached for clear view

Thanks alot

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

It's a three step process:

first, retrieve the image from the picture control using GetCtrlBitmap

second, save the image to a file, e.g., using SaveBitmapToPNGFile or SaveBitmapToJPEGFile

finally, free memory using DiscardBitmap

 

This information can also be found in the help of CVI, search for 'bitmap' and you will end up with an overview page 'Using Bitmap Objects' listing all related commands Smiley Wink

Message 2 of 2
(2,549 Views)