TDrawingLinearGradient Class
This class holds a linear gradient definition.
Syntax
Namespace: FlexCel.Core
public class TDrawingLinearGradient: TDrawingGradientDef
Constructors
Methods
Name |
Description |
Equals |
Returns true if this instance has the same data as the object obj.
|
CompareTo |
Returns -1 if obj is bigger than this, 0 if both objects are the same, and 1 if obj is smaller than this.
|
GetHashCode |
Returns the hashcode for this object |
Properties
Name |
Description |
Angle |
Specifies the direction of color change for the gradient. To define this angle, let its value be x measured clockwise. Then ( -sin x, cos x ) is a vector parallel to the line of constant color in the gradient fill.
|
Scaled |
Whether the gradient angle scales with the fill region. Mathematically, if this flag is true, then the gradient vector ( cos x , sin x ) is scaled by the width (w) and height (h) of the fill region, so that the vector becomes ( w cos x, h sin x ) (before normalization).
|