Back to Devexpress

dxMakeAlphaColor(TColor,Byte) Method

vcl-dxcoregraphics-dot-dxmakealphacolor-x28-87415eab-x29.md

latest1.6 KB
Original Source

dxMakeAlphaColor(TColor,Byte) Method

Creates a TdxAlphaColor value from individual color component values and returns it as the function’s result.

Declaration

delphi
function dxMakeAlphaColor(AColor: TColor; AAlpha: Byte = 255): TdxAlphaColor;

Parameters

NameType
AColorTColor
AAlphaByte

Returns

Type
TdxAlphaColor

Remarks

The first overloaded variant accepts red, green, and blue color component values as the R, G, and B parameters, respectively. The alpha value of the resulting color is 255 ( $FF ), which corresponds to a non-transparent (i.e., solid) color.

The second overloaded variant allows you to pass the alpha value of the resulting color as the A parameter in addition to the color component values (R, G, and B).

The third overloaded variant creates the color based on the color components (TColor bits) and the alpha value passed as the AColor and AAlpha parameters, respectively.

See Also

dxCoreGraphics.dxAlphaColorToColor

dxCoreGraphics.dxColorToAlphaColor

TdxAlphaColors.FromArgb

dxCoreGraphics Unit