Skip to main content

dxRGBQuadToColor(TRGBQuad) Method

Converts a specified TRGBQuad value to the TColor type.

Declaration

function dxRGBQuadToColor(const ARGB: TRGBQuad): TColor;

Parameters

Name Type
ARGB TRGBQuad

Returns

Type
TColor

Remarks

This function obtains the red, green, and blue color component values from the rgbRed, rgbGreen, and rgbBlue fields of the TRGBQuad value passed as the ARGB parameter. The ARGB.rgbReserved field value is ignored.

Note

For reverse conversion (that is, from TColor to TRGBQuad) use the dxColorToRGBQuad function.

See Also