Table of Contents

TTMSFNCGraphicsFill.AddGradientItem Method

Appends a gradient stop with the given AColor, normalized APosition (0.0–1.0), and AOpacity.

API unit family: TMSFNCGraphicsTypes Declaring type: TTMSFNCGraphicsFill Inherited from: TTMSFNCCustomGraphicsFill

Syntax

function AddGradientItem(AColor: TTMSFNCGraphicsColor; APosition: Single; AOpacity: Single = 1.0): TTMSFNCGraphicsFillGradientItem; virtual;

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.