LinearMulticolorGradientBrush.LinearMulticolorGradientBrush

LinearMulticolorGradientBrush()

Initializes a new instance of the LinearMulticolorGradientBrush class with default parameters. The starting color is black, the ending color is white, the angle is 45 degrees and the rectangle is located in (0,0) with size (1,1).

public LinearMulticolorGradientBrush()

See Also


LinearMulticolorGradientBrush(Point, Point)

Initializes a new instance of the LinearMulticolorGradientBrush class with the specified points.

public LinearMulticolorGradientBrush(Point point1, Point point2)
ParameterTypeDescription
point1PointA Point structure that represents the starting point of the linear gradient.
point2PointA Point structure that represents the endpoint of the linear gradient.

See Also


LinearMulticolorGradientBrush(PointF, PointF)

Initializes a new instance of the LinearMulticolorGradientBrush class with the specified points.

public LinearMulticolorGradientBrush(PointF point1, PointF point2)
ParameterTypeDescription
point1PointFA PointF structure that represents the starting point of the linear gradient.
point2PointFA PointF structure that represents the endpoint of the linear gradient.

See Also


LinearMulticolorGradientBrush(Rectangle, float)

Initializes a new instance of the LinearMulticolorGradientBrush class based on a rectangle and an orientation angle.

public LinearMulticolorGradientBrush(Rectangle rect, float angle)
ParameterTypeDescription
rectRectangleA RectangleF structure that specifies the bounds of the linear gradient.
angleSingleThe angle, measured in degrees clockwise from the x-axis, of the gradient’s orientation line.

See Also


LinearMulticolorGradientBrush(RectangleF, float)

Initializes a new instance of the LinearMulticolorGradientBrush class based on a rectangle and an orientation angle.

public LinearMulticolorGradientBrush(RectangleF rect, float angle)
ParameterTypeDescription
rectRectangleFA RectangleF structure that specifies the bounds of the linear gradient.
angleSingleThe angle, measured in degrees clockwise from the x-axis, of the gradient’s orientation line.

See Also


LinearMulticolorGradientBrush(Rectangle, float, bool)

Initializes a new instance of the LinearMulticolorGradientBrush class based on a rectangle and an orientation angle.

public LinearMulticolorGradientBrush(Rectangle rect, float angle, bool isAngleScalable)
ParameterTypeDescription
rectRectangleA RectangleF structure that specifies the bounds of the linear gradient.
angleSingleThe angle, measured in degrees clockwise from the x-axis, of the gradient’s orientation line.
isAngleScalableBooleanif set to true the angle is changed during transformations with this LinearMulticolorGradientBrush.

See Also


LinearMulticolorGradientBrush(RectangleF, float, bool)

Initializes a new instance of the LinearMulticolorGradientBrush class based on a rectangle and an orientation angle.

public LinearMulticolorGradientBrush(RectangleF rect, float angle, bool isAngleScalable)
ParameterTypeDescription
rectRectangleFA RectangleF structure that specifies the bounds of the linear gradient.
angleSingleThe angle, measured in degrees clockwise from the x-axis, of the gradient’s orientation line.
isAngleScalableBooleanif set to true the angle is changed during transformations with this LinearMulticolorGradientBrush.

See Also