System::Drawing::Drawing2D::LinearGradientBrush::LinearGradientBrush constructor

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)
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

See Also

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

RTTI information.

System::Drawing::Drawing2D::LinearGradientBrush::LinearGradientBrush(const PointF &point1, const PointF &point2, const Color &color1, const Color &color2)
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

Remarks

Constructs a new instance of LinearGradientBrush.

See Also

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)
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

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)
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

See Also

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)
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

See Also

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)
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

See Also