LinearGradientBrush()

LinearGradientBrush::LinearGradientBrush(const PointF&, const PointF&, const Color&, const Color&) constructor

Constructs a new instance of LinearGradientBrush.

System::Drawing::Drawing2D::LinearGradientBrush::LinearGradientBrush(const PointF &point1, const PointF &point2, const Color &color1, const Color &color2)

Arguments

ParameterTypeDescription
point1const PointF&The start point of the gradient
point2const PointF&The end point of the gradient
color1const Color&The start color of the gradient
color2const Color&The end color of the gradient

LinearGradientBrush::LinearGradientBrush(const Point&, const Point&, const Color&, const Color&) constructor

Constructs a new instance of LinearGradientBrush.

System::Drawing::Drawing2D::LinearGradientBrush::LinearGradientBrush(const Point &point1, const Point &point2, const Color &color1, const Color &color2)

Arguments

ParameterTypeDescription
point1const Point&The start point of the gradient
point2const Point&The end point of the gradient
color1const Color&The start color of the gradient
color2const Color&The end color of the gradient

LinearGradientBrush::LinearGradientBrush(const RectangleF&, const Color&, const Color&, LinearGradientMode) constructor

Constructs a new instance of LinearGradientBrush.

System::Drawing::Drawing2D::LinearGradientBrush::LinearGradientBrush(const RectangleF &rect, const Color &color1, const Color &color2, LinearGradientMode linearGradientMode)

Arguments

ParameterTypeDescription
rectconst RectangleF&A bounding rectangle of the gradient
color1const Color&The start color of the gradient
color2const Color&The end color of the gradient
linearGradientModeLinearGradientModeThe gradient direction

LinearGradientBrush::LinearGradientBrush(const Rectangle&, const Color&, const Color&, LinearGradientMode) constructor

Constructs a new instance of LinearGradientBrush.

System::Drawing::Drawing2D::LinearGradientBrush::LinearGradientBrush(const Rectangle &rect, const Color &color1, const Color &color2, LinearGradientMode linearGradientMode)

Arguments

ParameterTypeDescription
rectconst Rectangle&A bounding rectangle of the gradient
color1const Color&The start color of the gradient
color2const Color&The end color of the gradient
linearGradientModeLinearGradientModeThe gradient direction

LinearGradientBrush::LinearGradientBrush(const RectangleF&, const Color&, const Color&, float, bool) constructor

Constructs a new instance of LinearGradientBrush.

System::Drawing::Drawing2D::LinearGradientBrush::LinearGradientBrush(const RectangleF &rect, const Color &color1, const Color &color2, float angle, bool isAngleScaleable=false)

Arguments

ParameterTypeDescription
rectconst RectangleF&A bounding rectangle of the gradient
color1const Color&The start color of the gradient
color2const Color&The end color of the gradient
anglefloatThe angle of the gradient orientation line; measured in degrees clockwise from the x-axis
isAngleScaleableboolSpecifies if the angle of the gradient is affected by the transformation associated with the brush

LinearGradientBrush::LinearGradientBrush(const Rectangle&, const Color&, const Color&, float, bool) constructor

Constructs a new instance of LinearGradientBrush.

System::Drawing::Drawing2D::LinearGradientBrush::LinearGradientBrush(const Rectangle &rect, const Color &color1, const Color &color2, float angle, bool isAngleScaleable=false)

Arguments

ParameterTypeDescription
rectconst Rectangle&A bounding rectangle of the gradient
color1const Color&The start color of the gradient
color2const Color&The end color of the gradient
anglefloatThe angle of the gradient orientation line; measured in degrees clockwise from the x-axis
isAngleScaleableboolSpecifies if the angle of the gradient is affected by the transformation associated with the brush

See Also