Share via


CS_BITMAPINFOHEADER (Windows Embedded CE 6.0)

1/6/2010

This structure describes details about a video stream, such as image dimensions and pixel depth.

Syntax

typedef struct tagCS_BITMAPINFOHEADER{
  DWORD biSize;
  LONG  biWidth;
  LONG  biHeight;
  WORD  biPlanes;
  WORD  biBitCount;
  DWORD biCompression;
  DWORD biSizeImage;
  LONG  biXPelsPerMeter;
  LONG  biYPelsPerMeter;
  DWORD biClrUsed;
  DWORD biClrImportant;
} CS_BITMAPINFOHEADER, *PCS_BITMAPINFOHEADER;

Members

  • biSize
    A DWORD value that specifies the size of the structure in bytes.
  • biWidth
    A LONG value that specifies the width of the bitmap in pixels.
  • biHeight
    A LONG value that specifies the height of the bitmap in pixels.
  • biPlanes
    A WORD value that specifies the number of planes. For RGB and YUV-packed formats this is always set to 1. For planar YUV formats this value is the number of planes.
  • biBitCount
    A WORD value that specifies the color bits per pixel. For example, 1, 4, 8, or 24.
  • biCompression
    A DWORD value that specifies the type of compression for a compressed bottom-up bitmap (top-down DIBs cannot be compressed). This member can be one of the following values.

    Value Description

    BI_RGB

    An uncompressed format.

    BI_BITFIELDS

    Specifies that the bitmap is not compressed and that the color table consists of three DWORD color masks that specify the red, green, and blue components of each pixel.

    This is valid when used with 16- and 32-bpp bitmaps.

    This value is valid in Windows Embedded CE versions 2.0 and later.

    BI_ALPHABITFIELDS

    Specifies that the bitmap is not compressed and that the color table consists of four DWORD color masks that specify the red, green, blue, and alpha components of each pixel.

    This is valid when used with 16- and 32-bpp bitmaps.

    This value is valid in Windows CE .NET 4.0 and later.

    (FOURCC code)

    The FOURCC code that describes the pixel format.

    With Windows Embedded CE 6.0 and later, you can OR any of the values in the above table with BI_SRCPREROTATE to specify that the source DIB section has the same rotation angle as the destination.

  • biSizeImage
    A DWORD value that specifies the size of bitmap bits in bytes. (Only required if using compression.)
  • biXPelsPerMeter
    A LONG value that specifies the horizontal resolution in pixels per meter.
  • biYPelsPerMeter
    A LONG value that specifies the vertical resolution in pixels per meter.
  • biClrUsed
    A DWORD value that specifies the number of colors used in the image.
  • biClrImportant
    A DWORD value that specifies the number of important colors in the image.

Remarks

This is the same structure as the user-mode GDI bitmap structure BITMAPINFOHEADER.

Requirements

Header csmedia.h
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Reference

Camera Driver Structures

Other Resources

BITMAPINFOHEADER