Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BITMAPCOREHEADER structure

The BITMAPCOREHEADER structure contains information about the dimensions and color format of a DIB.

Syntax


typedef struct tagBITMAPCOREHEADER {
  DWORD bcSize;
  WORD  bcWidth;
  WORD  bcHeight;
  WORD  bcPlanes;
  WORD  bcBitCount;
} BITMAPCOREHEADER, *PBITMAPCOREHEADER;

Members

bcSize

The number of bytes required by the structure.

bcWidth

The width of the bitmap, in pixels.

bcHeight

The height of the bitmap, in pixels.

bcPlanes

The number of planes for the target device. This value must be 1.

bcBitCount

The number of bits-per-pixel. This value must be 1, 4, 8, or 24.

Remarks

The BITMAPCOREINFO structure combines the BITMAPCOREHEADER structure and a color table to provide a complete definition of the dimensions and colors of a DIB. For more information about specifying a DIB, see BITMAPCOREINFO.

An application should use the information stored in the bcSize member to locate the color table in a BITMAPCOREINFO structure, using a method such as the following:



pColor = ((LPBYTE) pBitmapCoreInfo + 
        (WORD) (pBitmapCoreInfo -> bcSize)) 


Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Wingdi.h (include Windows.h)

See also

Bitmaps Overview
Bitmap Structures
BITMAPCOREINFO

 

 

Community Additions

Show:
© 2014 Microsoft