LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

About the bitmap ID

Hello,

 

Using GetBitmapFromFileEx () to get an image file's bitmap ID, then using SetCtrlBitmap() to show it in a picture like control. I'd like to know if just to save the bitmap id but not include the image body to the database, then just use this bitmap ID, if this way can  resume the image display?

 

 

David

 

0 Kudos
Message 1 of 2
(4,599 Views)

Unfortunately not: the bitmap ID is not an absolute value but is just a reference to an object loaded in memory; if you haven't loaded the image, saving the ID has no value. Additionally, like any other dynamically allocated object, there is no guarantee that the same picture loaded in different moments in the life of the program will have the same ID.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(4,573 Views)