Skip to main content

dxColorToRGBQuad(TColor,Byte) Method

Converts a specified TColor value to the TRGBQuad type.

Declaration

function dxColorToRGBQuad(AColor: TColor; AReserved: Byte = 0): TRGBQuad;

Parameters

Name Type
AColor TColor
AReserved Byte

Returns

Type
TRGBQuad

Remarks

This function initializes the rgbBlue, rgbGreen, and rgbRed fields of the resulting TRGBQuad value with the blue, green, and red component values obtained from the AColor parameter. In addition, you can optionally provide a value for the rgbReserved field using the AReserved parameter.

Note

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

See Also