Skip to main content
Red
Tan

TdxAlphaColors.FromColor(TColor) Method

Converts a specified TColor value to the TdxAlphaColor type.

Declaration

class function FromColor(const AColor: TColor): TdxAlphaColor; overload; static;

Parameters

Name Type
AColor TColor

Returns

Type
TdxAlphaColor

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