TdxAlphaColors.FromColor(TColor) Method
In This Article
Converts a specified TColor value to the TdxAlphaColor type.
#Declaration
Delphi
class function FromColor(const AColor: TColor): TdxAlphaColor; overload; static;
#Parameters
Name | Type |
---|---|
AColor | TColor |
#Returns
Type |
---|
Tdx |
#Remarks
FromColor calls the dxColorToAlphaColor function, passes AColor as its parameter, and returns the function’s result. The alpha value of the resulting color is always 255 ($FF), which corresponds to a non-transparent (i.e., solid) color.
See Also