Constructor LinearGradientBrush
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
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
PointDThe start point of the gradient.
endPoint
PointDThe end point of the gradient.
startColor
ColorThe start color of the gradient.
endColor
ColorThe 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
PointDThe start point of the gradient.
endPoint
PointDThe end point of the gradient.
gradientStops
GradientStop[]The GradientStop instances array to set on this brush.