VisualStyleRenderer.DrawImage Método

Definición

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

Sobrecargas

Nombre Description
DrawImage(Graphics, Rectangle, Image)

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

DrawImage(Graphics, Rectangle, ImageList, Int32)

Dibuja la imagen del especificado ImageList 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

que Graphics se usa para dibujar la imagen.

bounds
Rectangle

objeto Rectangle en el que se dibuja la imagen.

image
Image

que Image se va a dibujar.

Excepciones

g o image es null.

Comentarios

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

Se aplica a

DrawImage(Graphics, Rectangle, ImageList, Int32)

Dibuja la imagen del especificado ImageList 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

que Graphics se usa para dibujar la imagen.

bounds
Rectangle

objeto Rectangle en el que se dibuja la imagen.

imageList
ImageList

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

imageIndex
Int32

Índice del elemento dentro imageList del Image 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 valores de System.Windows.Forms.VisualStyles.IconEffect al elemento actual, este método aplicará el efecto a la imagen dibujada.

Se aplica a