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

dxAlphaColorToColor(TdxAlphaColor,Byte) Method

Converts a specified TdxAlphaColor value to the TColor type.

#Declaration

Delphi
function dxAlphaColorToColor(AColor: TdxAlphaColor; out AAlpha: Byte): TColor;

#Parameters

Name Type
AColor TdxAlphaColor
AAlpha Byte

#Returns

Type
TColor

#Remarks

Both overloaded variants of this function create a TColor value from the color passed as the AColor parameter. The second overloaded variant additionally obtains the alpha value from AColor and returns it as the AAlpha parameter.

Note

For reverse conversion (i.e., from TColor to TdxAlphaColor), use the dxColorToAlphaColor function.

See Also