Share via


CS_BITMAPINFOHEADER (Compact 2013)

3/26/2014

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.

    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.

    (FOURCC code)

    The FOURCC code that describes the pixel format.

    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

See Also

Reference

Camera Driver Structures

Other Resources

BITMAPINFOHEADER