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