Class GeoLinearGradientBrush
Encapsulates a GeoBrush with a linear gradient.
public class GeoLinearGradientBrush : GeoBrush
- Inheritance
-
GeoLinearGradientBrush
- Inherited Members
Remarks
This class encapsulates both two-color gradients and custom multicolor gradients.
All linear gradients are defined along a line specified either by the width of a rectangle or by two points.
By default, a two-color linear gradient is an even horizontal linear blend from the starting color to the ending color along the specified line.
Constructors
GeoLinearGradientBrush()
Create a new instance of the GeoLinearGradientBrush with default settings.
protected GeoLinearGradientBrush()
GeoLinearGradientBrush(GeoColor, GeoColor, float)
Create an instance of GeoLinearGradientBrush by passing a gradient start color and gradient end color followed by the gradient direction angle.
public GeoLinearGradientBrush(GeoColor startColor, GeoColor endColor, float directionAngle)
Parameters
startColor
GeoColorThis parameter specifies the starting GeoColor of the GeoLinearGradientBrush.
endColor
GeoColorThis parameter specifies the endding GeoColor of the GeoLinearGradientBrush.
directionAngle
floatThis parameter specifies the direction angle value of the GeoLinearGradientBrush.
GeoLinearGradientBrush(GeoColor, GeoColor, GeoLinearGradientDirection)
Create an instance of GeoLinearGradientBrush by passing a gradient start color and gradient end color followed by the gradient direction enum.
public GeoLinearGradientBrush(GeoColor startColor, GeoColor endColor, GeoLinearGradientDirection direction)
Parameters
startColor
GeoColorThis parameter specifies the starting GeoColor of the GeoLinearGradientBrush.
endColor
GeoColorThis parameter specifies the endding GeoColor of the GeoLinearGradientBrush.
direction
GeoLinearGradientDirectionThis parameter specifies the GeoLinearGradientDirection enumeration of the GeoLinearGradientBrush.
Properties
DirectionAngle
Gets or sets the Direction angle of the GeoLinearGradientBrush.
public float DirectionAngle { get; set; }
Property Value
EndColor
Gets or sets the ending GeoColor of the gradient.
public GeoColor EndColor { get; set; }
Property Value
StartColor
Gets or sets the starting GeoColor of the gradient.
public GeoColor StartColor { get; set; }
Property Value
WrapMode
Gets or sets a GeoWrapMode enumeration that indicates the wrap mode for the GeoLinearGradientBrush.
public GeoBrushWrapMode WrapMode { get; set; }