How To Distinguish Between DIB Sections And Device Dependent Bit (187539)
The information in this article applies to:
- Microsoft Windows 2000 Server
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Professional
- Microsoft Platform Software Development Kit (SDK) 1.0
This article was previously published under Q187539 SUMMARY
In some cases, you might need to know whether a particular bitmap handle
references a DIB section or a device-dependent bitmap. To discern between
the two bitmap types, call GetObject() on the handle and get it to fill out
a BITMAP structure. After the call to GetObject(), the bmBits field of the
BITMAP structure will contain a pointer to the surface of the DIB section
if the handle references a DIB section and NULL if the handle references a
device-dependent bitmap (DDB).
REFERENCES
For additional information on DIB sections, please see the following
article in the Microsoft Knowledge Base:
ARTICLE-ID: <WWLINK TYPE="ARTICLE" VALUE="Q186221">Q186221</WWLINK>
TITLE : SAMPLE: DibSectn.exe Uses DIBSections in Win32
Modification Type: | Minor | Last Reviewed: | 7/11/2005 |
---|
Keywords: | kbhowto KB187539 |
---|
|