dxMakeAlphaColor(TColor,Byte) Method
Creates a TdxAlphaColor value from individual color component values and returns it as the function’s result.
Declaration
function dxMakeAlphaColor(AColor: TColor; AAlpha: Byte = 255): TdxAlphaColor;
Parameters
Name | Type |
---|---|
AColor | TColor |
AAlpha | Byte |
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