VB3 Converting an Icon (.ICO) to Bitmap (.BMP) FormatID: Q90872
|
You can convert a Windows icon file (.ICO) to a Windows bitmap (.BMP) file by storing the icon in a picture box, and then using the SavePicture statement with the Image property of the picture control.
You may wish to convert an icon format file to the bitmap format
to perform operations that cannot be performed on icon format files, such
as loading the image into Microsoft Windows Paintbrush.
To convert an icon format file to a bitmap format file, assign the
icon to the Picture property of a picture box property (at design-time
or run-time). At run-time, use the following statement:
SavePicture Picture1.Image, "filename.bmp"
Sub Form_Click ()
Picture1.AutoSize = -1
Picture1.Picture = LoadPicture("icons\arrows\arw01dn.ico")
SavePicture Picture1.Image, "arw01dn.bmp"
End Sub
Chapter 19 File Formats of "Microsoft Windows Programmer's Reference"
Additional query words: 2.00 3.00
Keywords : kbcode APrgGrap
Version : 1.00 2.00 3.00
Platform : WINDOWS
Issue type :
Last Reviewed: June 23, 1999