HOWTO: Retrieving an Optimal DIB Format for a Device (230492)
The information in this article applies to:
- Microsoft Windows 2000 Server
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Professional
- Microsoft Win32 Application Programming Interface (API)
- Microsoft Windows XP Home Edition
- Microsoft Windows XP Professional
- the operating system: Microsoft Windows XP 64-Bit Edition
This article was previously published under Q230492 SUMMARY
When writing applications that demand the highest possible performance from blt'ing operations that transfer from a DIB surface to a target device, it is extremely important to ensure that the attributes of source surface exactly match those of the destination device. If the attributes do not match, then a performance-consuming translation will occur when using such operations as BitBlt().
This article demonstrates a simple method for obtaining the attributes that describe the surface of a device. This surface information can be used with the CreateDIBSection() API to allow you to create a DIB surface that optimally matches the target device.
REFERENCES
For additional information about 16 and 32 bits-per-pel (bpp) DIB formats, please see the following
article in the Microsoft Knowledge Base:
For additional information about DIB sections and how to use them, please see the following
article in the Microsoft Knowledge Base:
186221 SAMPLE: DibSectn.exe Uses DIBSections in Win32
Modification Type: | Major | Last Reviewed: | 4/4/2006 |
---|
Keywords: | kbDSWGDI2003Swept kbBitmap kbDevContext kbDibSect kbGDI kbhowto KB230492 |
---|
|