Skip to main content

TdxGPBrushGradientPoints.Offsets Property

An array containing the offset values of the key points on the gradient line.

Declaration

property Offsets[Index: Integer]: Single read; write;

Property Value

Type
Single

Remarks

The values stored by the Offsets property correspond to the same-indexed values stored within the Colors property. The Index parameter specifies the gradient point’s zero-based index in the array.

An individual offset value determines the relative position of the key point on the gradient line connecting the opposite boundaries or corners of an area painted by the brush. An offset value ranges from 0 to 1 (which corresponds to the key gradient point’s position between the beginning and the end of the gradient line):

The actual direction of the gradient line is determined by the value of the GradientMode property implemented in the TdxGPBrush class.

Use the Offsets property to identify and/or change the position of an existing gradient point on the gradient line.

See Also