Class LinearGradientBrush
Contents
[
Hide
]LinearGradientBrush class
Encapsulates a Brush
with a linear gradient. This class cannot be inherited.
public sealed class LinearGradientBrush : LinearGradientBrushBase
Constructors
Name | Description |
---|---|
LinearGradientBrush() | Initializes a new instance of the LinearGradientBrush class with default parameters. The starting color is black, the ending color is white, the angle is 45 degrees and the rectangle is located in (0,0) with size (1,1). |
LinearGradientBrush(Point, Point, Color, Color) | Initializes a new instance of the LinearGradientBrush class. |
LinearGradientBrush(PointF, PointF, Color, Color) | Initializes a new instance of the LinearGradientBrush class. |
LinearGradientBrush(Rectangle, Color, Color, float) | Initializes a new instance of the LinearGradientBrush class. |
LinearGradientBrush(RectangleF, Color, Color, float) | Initializes a new instance of the LinearGradientBrush class. |
LinearGradientBrush(Rectangle, Color, Color, float, bool) | Initializes a new instance of the LinearGradientBrush class. |
LinearGradientBrush(RectangleF, Color, Color, float, bool) | Initializes a new instance of the LinearGradientBrush class. |
Properties
Name | Description |
---|---|
Angle { get; set; } | Gets or sets the gradient angle. |
Blend { get; set; } | Gets or sets a Blend that specifies positions and factors that define a custom falloff for the gradient. |
Disposed { get; } | Gets a value indicating whether this instance is disposed. |
EndColor { get; set; } | Gets or sets the ending gradient color. |
GammaCorrection { get; set; } | Gets or sets a value indicating whether gamma correction is enabled for this LinearGradientBrushBase . |
IsAngleScalable { get; set; } | Gets or sets a value indicating whether Angle is changed during trasnformations with this LinearGradientBrushBase . |
IsTransformChanged { get; } | Gets a value indicating whether transformations were changed in some way. For example setting the transformation matrix or calling any of the methods altering the transformation matrix. The property is introduced for backward compatibility with GDI+. |
Opacity { get; set; } | Gets or sets the brush opacity. The value should be between 0 and 1. Value of 0 means that brush is fully visible, value of 1 means the brush is fully opaque. |
Rectangle { get; set; } | Gets or sets a rectangular region that defines the starting and ending points of the gradient. |
StartColor { get; set; } | Gets or sets the starting gradient color. |
Transform { get; set; } | Gets or sets a copy Matrix that defines a local geometric transform for this TransformBrush . |
WrapMode { get; set; } | Gets or sets a WrapMode enumeration that indicates the wrap mode for this TransformBrush . |
Methods
Name | Description |
---|---|
virtual DeepClone() | Creates a new deep clone of the current Brush . |
Dispose() | Disposes the current instance. |
override Equals(object) | Check if objects are equal. |
override GetHashCode() | Get hash code of the current object. |
MultiplyTransform(Matrix) | Multiplies the Matrix that represents the local geometric transform of this LinearGradientBrush by the specified Matrix by prepending the specified Matrix . |
MultiplyTransform(Matrix, MatrixOrder) | Multiplies the Matrix that represents the local geometric transform of this LinearGradientBrush by the specified Matrix in the specified order. |
ResetTransform() | Resets the Transform property to identity. |
RotateTransform(float) | Rotates the local geometric transform by the specified amount. This method prepends the rotation to the transform. |
RotateTransform(float, MatrixOrder) | Rotates the local geometric transform by the specified amount in the specified order. |
ScaleTransform(float, float) | Scales the local geometric transform by the specified amounts. This method prepends the scaling matrix to the transform. |
ScaleTransform(float, float, MatrixOrder) | Scales the local geometric transform by the specified amounts in the specified order. |
SetBlendTriangularShape(float) | Creates a linear gradient with a center color and a linear falloff to a single color on both ends. |
SetBlendTriangularShape(float, float) | Creates a linear gradient with a center color and a linear falloff to a single color on both ends. |
SetSigmaBellShape(float) | Creates a gradient falloff based on a bell-shaped curve. |
SetSigmaBellShape(float, float) | Creates a gradient falloff based on a bell-shaped curve. |
TranslateTransform(float, float) | Translates the local geometric transform by the specified dimensions. This method prepends the translation to the transform. |
TranslateTransform(float, float, MatrixOrder) | Translates the local geometric transform by the specified dimensions in the specified order. |
See Also
- class LinearGradientBrushBase
- namespace Aspose.Imaging.Brushes
- assembly Aspose.Imaging