Table of Contents

Constructor LinearGradientBrush

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

LinearGradientBrush()

Initializes a new instance of the LinearGradientBrush class.

public LinearGradientBrush()

LinearGradientBrush(Color, Color)

Initializes a new instance of the LinearGradientBrush class with the specified start color and end color.

public LinearGradientBrush(Color startColor, Color endColor)

Parameters

startColor Color

The Color at offset 0.0.

endColor Color

The Color at offset 1.0.

LinearGradientBrush(GradientStop[])

Initializes a new instance of the LinearGradientBrush class that has the specified gradient stops.

public LinearGradientBrush(GradientStop[] gradientStops)

Parameters

gradientStops GradientStop[]

The GradientStop instances array to set on this brush.

LinearGradientBrush(PointD, PointD, Color, Color)

Initializes a new instance of the LinearGradientBrush class that has the specified start color, end color, start point, end point.

public LinearGradientBrush(PointD startPoint, PointD endPoint, Color startColor, Color endColor)

Parameters

startPoint PointD

The start point of the gradient.

endPoint PointD

The end point of the gradient.

startColor Color

The start color of the gradient.

endColor Color

The end color of the gradient.

LinearGradientBrush(PointD, PointD, GradientStop[])

Initializes a new instance of the LinearGradientBrush class that has the specified gradient stops, start point and end point.

public LinearGradientBrush(PointD startPoint, PointD endPoint, GradientStop[] gradientStops)

Parameters

startPoint PointD

The start point of the gradient.

endPoint PointD

The end point of the gradient.

gradientStops GradientStop[]

The GradientStop instances array to set on this brush.