Click or drag to resize

LinearGradientBrush Constructor (RectangleF, Color, Color, Single)

Initializes a new instance of the LinearGradientBrush class with a given rectangle and angle

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public LinearGradientBrush(
	RectangleF rectangle,
	Color startColor,
	Color endColor,
	float angle
)

Parameters

rectangle
Type: Eto.DrawingRectangleF
Rectangle to define the area of the gradient
startColor
Type: Eto.DrawingColor
Start color for the gradient
endColor
Type: Eto.DrawingColor
End color for the gradient
angle
Type: SystemSingle
Angle of the gradient, in degrees
See Also