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

dxColorToRGBQuad(TColor,Byte) Method

Converts a specified TColor value to the TRGBQuad type.

#Declaration

Delphi
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