Renders a gradient using the BackgroundGradient properties.
Declaration Syntax
C# | Visual Basic |
public static void RenderBackgroundGradient( Graphics g, RectangleF rect, RectangleF rectBorder, RectangleF rectGradient, BackgroundGradient gradient )
Public Shared Sub RenderBackgroundGradient ( _ g As Graphics, _ rect As RectangleF, _ rectBorder As RectangleF, _ rectGradient As RectangleF, _ gradient As BackgroundGradient _ )
Parameters
- g (Graphics)
- Graphics object to render to
- rect (RectangleF)
- Rectangle to fill with the gradient
- rectBorder (RectangleF)
- Rectangle used for the border
- rectGradient (RectangleF)
- Rectangle defining the gradient size
- gradient (BackgroundGradient)
- BackgroundGradient object