VisualStyleRenderer.DrawImage Método

Definição

Desenha a imagem especificada dentro do retângulo delimitador especificado.

Sobrecargas

Name Description
DrawImage(Graphics, Rectangle, Image)

Desenha a imagem especificada dentro dos limites especificados.

DrawImage(Graphics, Rectangle, ImageList, Int32)

Desenha a imagem a partir do especificado ImageList dentro dos limites especificados.

DrawImage(Graphics, Rectangle, Image)

Desenha a imagem especificada dentro dos limites 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

Foram Graphics usados para desenhar a imagem.

bounds
Rectangle

A Rectangle em que a imagem é desenhada.

image
Image

O Image desenho.

Exceções

g ou image é null.

Observações

Se o estilo visual aplicar um dos efeitos especificados pelos valores System.Windows.Forms.VisualStyles.IconEffect ao elemento atual, este método aplicará o efeito à imagem desenhada.

Aplica-se a

DrawImage(Graphics, Rectangle, ImageList, Int32)

Desenha a imagem a partir do especificado ImageList dentro dos limites 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

Foram Graphics usados para desenhar a imagem.

bounds
Rectangle

A Rectangle em que a imagem é desenhada.

imageList
ImageList

Um ImageList que contém o Image para desenhar.

imageIndex
Int32

O índice do Image interior imageList para desenhar.

Exceções

g ou image é null.

imageIndex é menor que 0, ou maior ou igual ao número de imagens em imageList.

Observações

Se o estilo visual aplicar um dos efeitos especificados pelos valores System.Windows.Forms.VisualStyles.IconEffect ao elemento atual, este método aplicará o efeito à imagem desenhada.

Aplica-se a