LinearMulticolorGradientBrush

LinearMulticolorGradientBrush constructor (1 of 7)

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 constructor (2 of 7)

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 constructor (3 of 7)

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 constructor (4 of 7)

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 constructor (5 of 7)

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 constructor (6 of 7)

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 constructor (7 of 7)

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