ActiveReports 14
GrapeCity.ActiveReports Assembly / GrapeCity.ActiveReports Namespace / GraphicsExtensions Class / CreateGradientBrush Method
The graphics to draw on.
A System.Drawing.RectangleF structure that specifies the bounds of the linear gradient.
The style of the gradient.
A System.Drawing.Color structure that represents the starting color for the gradient.
A System.Drawing.Color structure that represents the ending color for the gradient.

In This Topic
    CreateGradientBrush Method
    In This Topic
    Creates a new gradient brush based on a rectangle, starting and ending colors, and an orientation mode.
    Syntax
    '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.
    See Also