Back to Devexpress

dxRGBQuadToColor(TRGBQuad) Method

vcl-dxcoregraphics-dot-dxrgbquadtocolor-x28-72147064-x29.md

latest1.0 KB
Original Source

dxRGBQuadToColor(TRGBQuad) Method

Converts a specified TRGBQuad value to the TColor type.

Declaration

delphi
function dxRGBQuadToColor(const ARGB: TRGBQuad): TColor;

Parameters

NameType
ARGBTRGBQuad

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

dxCoreGraphics Unit