'Declaration Public Shared Function CreateGradientBrush( _ ByVal graphics As Graphics, _ ByVal rect As RectangleF, _ ByVal gradientStyle As GradientStyle, _ ByVal firstColor As Color, _ ByVal secondColor As Color _ ) As Brush
public static Brush CreateGradientBrush( Graphics graphics, RectangleF rect, GradientStyle gradientStyle, Color firstColor, Color secondColor )
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.