The DIBSECTION structure contains information about a device-independent bitmap created by calling the CreateDIBSection function. A DIBSECTION structure includes information about the bitmap's dimensions, color format, color masks, optional file mapping object, and optional bit values storage offset. An application can obtain a filled-in DIBSECTION structure for a given device-independent bitmap by calling the GetObject function.
typedef struct tagDIBSECTION {
BITMAP dsBm;
BITMAPINFOHEADER dsBmih;
DWORD dsBitfields[3];
HANDLE dshSection;
DWORD dsOffset;
} DIBSECTION;
Note A bitmap information header structure may be one of the following:
Operating System | Bitmap Information Header |
---|---|
Windows NT 3.51 and earlier | BITMAPINFOHEADER |
Windows NT 4.0 and Windows 95 | BITMAPV4HEADER |
Windows NT 5.0 and Windows 98 | BITMAPV5HEADER. |
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in wingdi.h.
Bitmaps Overview, Bitmap Structures, BITMAP, BITMAPINFOHEADER, CreateDIBSection, GetDIBColorTable, GetObject