Microsoft KB Archive/195827

{|
 * width="100%"|

PRB: Dimension of Bitmap Changes After Color Deep Switch

 * }

Q195827

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), on platform(s):
 * the operating system: Microsoft Windows 98

-

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.

Additional query words:

Keywords : kbBitmap kbGDI kbOSWin98

Issue type :

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch