C# Class CUE.NET.Brushes.RadialGradientBrush

Represents a brush drawing a radial gradient around a center point.
Inheritance: CUE.NET.Brushes.AbstractBrush
Show file Open project: DarthAffe/CUE.NET

Public Methods

Method Description
RadialGradientBrush ( ) : System

Initializes a new instance of the RadialGradientBrush class.

RadialGradientBrush ( IGradient gradient ) : System

Initializes a new instance of the RadialGradientBrush class.

RadialGradientBrush ( PointF center, IGradient gradient ) : System

Initializes a new instance of the RadialGradientBrush 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 CorsairColor

RadialGradientBrush() public method

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

RadialGradientBrush() public method

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

RadialGradientBrush() public method

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