Visual Basic Can Load RLE4 and RLE8 Bitmap Format Files

Last reviewed: June 21, 1995
Article ID: Q86283
The information in this article applies to:
  • Standard and Professional Editions of Microsoft Visual Basic for Windows, versions 2.0 and 3.0
  • Microsoft Visual Basic programming system for Windows, version 1.0

SUMMARY

Microsoft Visual Basic can load icons (.ICO), Windows metafiles (.WMF), Windows bitmap files (.BMP), and Windows compressed bitmap files (.RLE), both RLE4 and RLE8.

MORE INFORMATION

You can load an .RLE bitmap file as you would any other bitmap. For example, at design time you can set the Picture property of a picture box or form to an .RLE file. You can also use the LoadPicture function at run time to load the .RLE file into a picture box or form.

Although Visual Basic can load these image formats, the SavePicture statement can only save images in the regular Windows bitmap (.BMP) or Windows icon (.ICO) file format.

To save an image as an icon (.ICO), you must first load it as an icon. You can change the image using graphics methods such as Line and PSet, and then save the Picture property of the picture box or form as an icon (.ICO). Otherwise, you can only save images as Windows bitmap files (.BMP).


Additional reference words: 1.00 2.00 3.00
KBCategory: kbprg
KBSubcategory: PrgCtrlsStd


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 21, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.