VB3 Converting an Icon (.ICO) to Bitmap (.BMP) FormatLast reviewed: January 9, 1997Article ID: Q90872 |
The information in this article applies to:
SUMMARYYou 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.
MORE INFORMATIONYou 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"When you convert an icon to a bitmap, you lose device independence for resolution characteristics. Windows bitmap format files, which usually have a .BMP extension, represent an image with device independent color information. Windows icon files, which usually have an .ICO extension, can contain information for both color and resolution device independence. The steps listed below demonstrate how to convent an icon format file to a bitmap format file:
REFERENCESChapter 19 File Formats of "Microsoft Windows Programmer's Reference"
|
KBCategory: kbgraphic kbprg kbcode
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |