LinearGradientBrush Constructor (PointF, PointF, Color, Color)

 

Initializes a new instance of the LinearGradientBrush class with the specified points and colors.

Namespace:   System.Drawing.Drawing2D
Assembly:  System.Drawing (in System.Drawing.dll)

public:
LinearGradientBrush(
	PointF point1,
	PointF point2,
	Color color1,
	Color color2
)

Parameters

point1
Type: System.Drawing::PointF

A PointF structure that represents the starting point of the linear gradient.

point2
Type: System.Drawing::PointF

A PointF structure that represents the endpoint of the linear gradient.

color1
Type: System.Drawing::Color

A Color structure that represents the starting color of the linear gradient.

color2
Type: System.Drawing::Color

A Color structure that represents the ending color of the linear gradient.

.NET Framework
Available since 1.1
Return to top
Show: