dxColorToAlphaColor(TColor,Byte) Method
Converts a specified TColor value to the TdxAlphaColor type.
Declaration
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