CreateGradientBrush Method
In This Topic
Creates a new gradient brush based on a rectangle, starting and ending colors, and an orientation mode.
Syntax
Parameters
- graphics
- The graphics to draw on.
- rect
- A System.Drawing.RectangleF structure that specifies the bounds of the linear gradient.
- gradientStyle
- The style of the gradient.
- firstColor
- A System.Drawing.Color structure that represents the starting color for the gradient.
- secondColor
- A System.Drawing.Color structure that represents the ending color for the gradient.
See Also