VisualStyleRenderer.DrawImage Método

Definición

Dibuja la imagen especificada dentro del rectángulo delimitador especificado.

Sobrecargas

DrawImage(Graphics, Rectangle, Image)

Dibuja la imagen especificada dentro de los límites especificados.

DrawImage(Graphics, Rectangle, ImageList, Int32)

Dibuja la imagen de la ImageList especificada dentro de los límites especificados.

DrawImage(Graphics, Rectangle, Image)

Dibuja la imagen especificada dentro de los límites especificados.

public:
 void DrawImage(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::Drawing::Image ^ image);
public void DrawImage (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Drawing.Image image);
member this.DrawImage : System.Drawing.Graphics * System.Drawing.Rectangle * System.Drawing.Image -> unit
Public Sub DrawImage (g As Graphics, bounds As Rectangle, image As Image)

Parámetros

g
Graphics

Graphics que se utiliza para dibujar la imagen.

bounds
Rectangle

Rectangle en el que se dibuja la imagen.

image
Image

Image que se va a dibujar.

Excepciones

g o image es null.

Comentarios

Si el estilo visual aplica uno de los efectos especificados por los System.Windows.Forms.VisualStyles.IconEffect valores al elemento actual, este método aplicará el efecto a la imagen dibujada.

Se aplica a

DrawImage(Graphics, Rectangle, ImageList, Int32)

Dibuja la imagen de la ImageList especificada dentro de los límites especificados.

public:
 void DrawImage(System::Drawing::Graphics ^ g, System::Drawing::Rectangle bounds, System::Windows::Forms::ImageList ^ imageList, int imageIndex);
public void DrawImage (System.Drawing.Graphics g, System.Drawing.Rectangle bounds, System.Windows.Forms.ImageList imageList, int imageIndex);
member this.DrawImage : System.Drawing.Graphics * System.Drawing.Rectangle * System.Windows.Forms.ImageList * int -> unit
Public Sub DrawImage (g As Graphics, bounds As Rectangle, imageList As ImageList, imageIndex As Integer)

Parámetros

g
Graphics

Graphics que se utiliza para dibujar la imagen.

bounds
Rectangle

Rectangle en el que se dibuja la imagen.

imageList
ImageList

Un objeto ImageList que contiene el Image que se va a dibujar.

imageIndex
Int32

Índice del control Image dentro de imageList que se va a dibujar.

Excepciones

g o image es null.

imageIndex es menor que 0 o mayor o igual que el número de imágenes de imageList.

Comentarios

Si el estilo visual aplica uno de los efectos especificados por los System.Windows.Forms.VisualStyles.IconEffect valores al elemento actual, este método aplicará el efecto a la imagen dibujada.

Se aplica a