C# Class CUE.NET.Brushes.LinearGradientBrush

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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.
Résultat CUE.NET.Devices.Generic.CorsairColor

LinearGradientBrush() public méthode

Initializes a new instance of the LinearGradientBrush class.
public LinearGradientBrush ( ) : System.Drawing
Résultat System.Drawing

LinearGradientBrush() public méthode

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

LinearGradientBrush() public méthode

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.
Résultat System.Drawing