LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Extract a ICON file and save it in a Database(CVI 6)

Hello ,

How to extract a .ico file and save these binary data into a database or file ? When need to display it , I can read out these data then show it .Please give me a solution ,also I want to know how to treat the .wmf format file . Your advise is highly appreciated .

David
0 Kudos
Message 1 of 2
(2,928 Views)
An .ICO file is basically a .BMP file with a different extension. You can read it with GetBitmaFromFile function, that returns the ID of the bitmap. With GetBitmapData function you can retrieve the Bits array and some other data that that can be subsequently saved to the database.

To show the bitmap, you can use NewBitmap function passing to it the data read back from the database.

Look into the functions help for more informations about bitmap treatment.

Hope this helps
Roberto


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
(2,928 Views)