TdxAlphaColors.FromArgb(Byte,TdxAlphaColor) Method
Creates a TdxAlphaColor value from individual color component values and returns it as the function’s result.
Overloaded Versions
Declaration
class function FromArgb(AAlpha: Byte; ABaseColor: TdxAlphaColor): TdxAlphaColor; overload; static;
Parameters
Name | Type |
---|---|
AAlpha | Byte |
ABaseColor | TdxAlphaColor |
Returns
Type |
---|
TdxAlphaColor |
Remarks
The second overloaded variant allows you to specify the alpha value of the resulting color using the A parameter, in addition to providing three color component values (R, G, and B). The function calls the dxMakeAlphaColor global function with A, R, G, B as its parameters.
The first overloaded variant calls the second overloaded variant and passes 255, R, G, B as its parameters, thus producing only solid colors.
The third overloaded variant allows you to specify the alpha value (Alpha) for the color passed as the ABaseColor parameter.
See Also