Microsoft Windows CE 3.0  

DIBSECTION

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This structure contains information about a device-independent bitmap (DIB).

typedef struct
tagDIBSECTION
{
BITMAP
dsBm
;
BITMAPINFOHEADER
dsBmih
;
DWORD
dsBitfields[3]
;
HANDLE
dshSection
;
DWORD
dsOffset
;
}
DIBSECTION;

Members

dsBm
Specifies a BITMAPdata structure that contains information about the device-independent bitmap: its type, dimensions, color capacities, and a pointer to its bit values.
dsBmih
Specifies a bitmap information header structure that contains information about the color format of the DIB. Use the BITMAPINFOHEADERstructure.
dsBitfields
Specifies three DWORDcolor masks for the device-independent bitmap. This member is only valid when the BitCountmember of the BITMAP INFORMATION HEADERstructure has a value greater than 8. Each color mask indicates the bits within a DWORDused to encode one of the three color channels (red, green, and blue).
dshSection
Contains a handle to the file mapping object that the CreateDIBSectionfunction used to create the device-independent bitmap. If CreateDIBSectionwas called with a NULL value for its hSectionparameter, causing the system to allocate memory for the bitmap, the dshSectionmember will be NULL.
dsOffset
Specifies the offset to the bitmap's bit values within the file mapping object referenced by dshSection. If dshSectionis NULL, the dsOffsetvalue has no meaning.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 2.0 and later Wingdi.h    
Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

CreateDIBSection, GetObject, BITMAP, BITMAPINFOHEADER