PRB: Dimension of Bitmap Changes After Color Deep Switch
Article ID: 195827
Article Last Modified on 7/11/2005
APPLIES TO
- Microsoft Platform Software Development Kit-January 2000 Edition, when used with:
- Microsoft Windows 98 Standard Edition
This article was previously published under Q195827
SYMPTOMS
The values retrieved by GetBitmapDimensionEx after the color depth changes
are not the same as those set by SetBitmapDimensionEx before the color
depth changes.
CAUSE
Windows 98 GDI resource handling code reused the dimension values for
storing the handle of the logic device and the palette.
RESOLUTION
To work around this problem, store the bitmap dimension values locally in
the application and not through the GetBitmapDimensionEx API.
Keywords: kbbitmap kbgdi KB195827