Table of Contents

TUILinearGradientBrush Class

Represents a platform independent linear gradient.

Syntax

Unit: FlexCel.Core

TUILinearGradientBrush = class(TUIBrush);

Methods

Name Description
CalculateTransform​Elements Calculates the transform elements given a rotation and a rectangle, for platforms that can't calculate it.
CreateNew This method will return the appropriate Brush depending in the Graphics framework you are using to render images.
CalcRotatedCoords Returns the rotated coordinates for the gradient, needed to define in platforms like PDF or OSX.
InvertBlend Inverts the colors of the gradient.

Properties

Name Description
Rectangle Rectangle that defines the gradient.
TransformElements Transform matrix.
InterpolationColors Colors that define the gradient.