C# Class CUE.NET.Brushes.LinearGradientBrush

Represents a brush drawing a linear gradient.
Inheritance: CUE.NET.Brushes.AbstractBrush, IGradientBrush
Show file Open project: DarthAffe/CUE.NET Class Usage Examples

Public Methods

Method Description
LinearGradientBrush ( ) : System.Drawing

Initializes a new instance of the LinearGradientBrush class.

LinearGradientBrush ( IGradient gradient ) : System.Drawing

Initializes a new instance of the LinearGradientBrush class.

LinearGradientBrush ( PointF startPoint, PointF endPoint, IGradient gradient ) : System.Drawing

Initializes a new instance of the LinearGradientBrush class.

Protected Methods

Method Description
GetColorAtPoint ( RectangleF rectangle, BrushRenderTarget renderTarget ) : CorsairColor

Gets the color at an specific point assuming the brush is drawn into the given rectangle.

Method Details

GetColorAtPoint() protected method

Gets the color at an specific point assuming the brush is drawn into the given rectangle.
protected GetColorAtPoint ( RectangleF rectangle, BrushRenderTarget renderTarget ) : CorsairColor
rectangle System.Drawing.RectangleF The rectangle in which the brush should be drawn.
renderTarget BrushRenderTarget The target (key/point) from which the color should be taken.
return CUE.NET.Devices.Generic.CorsairColor

LinearGradientBrush() public method

Initializes a new instance of the LinearGradientBrush class.
public LinearGradientBrush ( ) : System.Drawing
return System.Drawing

LinearGradientBrush() public method

Initializes a new instance of the LinearGradientBrush class.
public LinearGradientBrush ( IGradient gradient ) : System.Drawing
gradient IGradient The gradient drawn by the brush.
return System.Drawing

LinearGradientBrush() public method

Initializes a new instance of the LinearGradientBrush class.
public LinearGradientBrush ( PointF startPoint, PointF endPoint, IGradient gradient ) : System.Drawing
startPoint System.Drawing.PointF The start point (as percentage in the range [0..1]).
endPoint System.Drawing.PointF The end point (as percentage in the range [0..1]).
gradient IGradient The gradient drawn by the brush.
return System.Drawing