共用方式為


BITMAPCOREHEADER

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This structure contains information about the dimensions and color format of a device-independent bitmap (DIB).

Syntax

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

Members

  • bcSize
    Specifies the number of bytes required by the structure
  • bcWidth
    Specifies the width of the bitmap, in pixels
  • bcHeight
    Specifies the height of the bitmap, in pixels
  • bcPlanes
    Specifies the number of planes for the target device.

    This value must be 1.

  • bcBitCount
    Specifies the number of bits per pixel.

    This value must be 1, 2, 4, 8, or 24.

Remarks

The BITMAPCOREINFO structure combines the BITMAPCOREHEADER structure and a color table to provide a complete definition of DIB dimensions and colors. 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.

The following code sample shows how to locate the color table.

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

Requirements

Header windows.h
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

BITMAPCOREINFO
RGBTRIPLE
GDI Structures