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

Draws the image from the specified System.Windows.Forms.ImageList within the specified bounds.

Syntax

public void DrawImage (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Windows.Forms.ImageList imageList, int imageIndex)

Parameters

g
The System.Drawing.Graphics used to draw the image.
bounds
A System.Drawing.Rectangle in which the image is drawn.
imageList
An System.Windows.Forms.ImageList that contains the System.Drawing.Image to draw.
imageIndex
The index of the System.Drawing.Image within imageList 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