PRB: LoadPicture Displays 16 x 16 Icons as 32 x 32Last reviewed: June 19, 1997Article ID: Q170341 |
The information in this article applies to:
SYMPTOMSWhen using the LoadPicture Function to display a 16 x 16 icon in an Image control, or any other control that uses the LoadPicture function to store images into the Picture object, the icon will display at 32 x 32.
RESOLUTIONTo work around this problem, use one of the following methods.
STATUSThis behavior is by design.
MORE INFORMATIONLoadPicture always loads a 32 x 32 icon. If the icon file being loaded contains a single 16 x 16 image, LoadPicture stretches it to 32 x 32 before storing it in the Picture object of a control.
Steps to Reproduce BehaviorThe steps below illustrate an example that displays a 16 x 16 icon in an Image control. NOTE: You can use IMAGEDIT.EXE that ships on the Visual Basic 5.0 CD-ROM to create icons. This tool is located in the Tools\Imagedit directory on the Visual Basic 5.0 CD-ROM.
REFERENCES"HardCore Visual Basic", Microsoft Press, pg. 535 |
Keywords : vb4win vb5all VBKBCtrl VBKBInt kbprb
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |