RGBQUAD structure (wingdi.h)

The RGBQUAD structure describes a color consisting of relative intensities of red, green, and blue.

Syntax

typedef struct tagRGBQUAD {
  BYTE rgbBlue;
  BYTE rgbGreen;
  BYTE rgbRed;
  BYTE rgbReserved;
} RGBQUAD;

Members

rgbBlue

The intensity of blue in the color.

rgbGreen

The intensity of green in the color.

rgbRed

The intensity of red in the color.

rgbReserved

This member is reserved and must be zero.

Remarks

The bmiColors member of the BITMAPINFO structure consists of an array of RGBQUAD structures.

Requirements

Requirement Value
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

BITMAPINFO

Bitmap Structures

Bitmaps Overview

CreateDIBSection

CreateDIBitmap

GetDIBits

SetDIBits

SetDIBitsToDevice

StretchDIBits