TTMSFNCGraphicsFill.AddGradientItem Method
Appends a gradient stop with the given
AColor, normalizedAPosition(0.0–1.0), andAOpacity.
API unit family: TMSFNCGraphicsTypes
Declaring type: TTMSFNCGraphicsFill
Inherited from: TTMSFNCCustomGraphicsFill
Syntax
function AddGradientItem(AColor: TTMSFNCGraphicsColor; APosition: Single; AOpacity: Single = 1.0): TTMSFNCGraphicsFillGradientItem; virtual;
virtual TTMSFNCGraphicsFillGradientItem* __fastcall AddGradientItem(TTMSFNCGraphicsColor AColor, float APosition, float AOpacity = 1.000000E+00f);
Parameters
| Name | Description |
|---|---|
AColor |
Color of the gradient stop. |
APosition |
Normalized stop position from 0.0 to 1.0. |
AOpacity |
Opacity for the stop, where 1.0 is fully opaque. |
Returns
The newly created gradient item.