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

dxColorToAlphaColor(TColor,Byte) Method

Converts a specified TColor value to the TdxAlphaColor type.

#Declaration

Delphi
function dxColorToAlphaColor(AColor: TColor; AAlpha: Byte = 255): TdxAlphaColor;

#Parameters

Name Type
AColor TColor
AAlpha Byte

#Returns

Type
TdxAlphaColor

#Remarks

By default, the function creates a solid color from a source color passed as the AColor parameter. To set the custom transparency level, use the optional AAlpha parameter.

Note

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

See Also