Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

dxRGBQuadToColor(TRGBQuad) Method

Converts a specified TRGBQuad value to the TColor type.

#Declaration

Delphi
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