RGBQUAD
RGBQUAD is a Windows GDI structure used to represent a color in a color table (palette) or in a device-independent bitmap (DIB) palette. It defines a single 32-bit color entry used by paletted bitmaps and by the bmiColors array in a BITMAPINFO structure.
The structure consists of four unsigned byte fields:
- rgbBlue
- rgbGreen
- rgbRed
The color components are stored in the order blue, green, red in memory, with the rgbReserved byte
RGBQUAD is primarily used for 8-bit or lower-paletted DIBs, where the image data references color table indices.
RGBQUAD is defined in Windows headers (for example, Wingdi.h) as a typedef of a struct with the
See also: BITMAPINFO, BITMAPINFOHEADER, DIB, color table, RGBTRIPLE.