System.Windows.Forms.VisualStyles.VisualStyleRenderer.DrawImage Method

Draws the specified image within the specified bounds.

Syntax

public void DrawImage (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Drawing.Image image)

Parameters

g
The System.Drawing.Graphics used to draw the image.
bounds
A System.Drawing.Rectangle in which the image is drawn.
image
The System.Drawing.Image to draw.

Remarks

If the visual style applies one of the effects specified by the System.Windows.Forms.VisualStyles.IconEffect values to the current element, this method will apply the effect to the drawn image.

Requirements

Namespace: System.Windows.Forms.VisualStyles
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0