Label.DrawImage(Graphics, Image, Rectangle, ContentAlignment) Método

Definição

Desenha um Image dentro dos limites especificados.Draws an Image within the specified bounds.

protected:
 void DrawImage(System::Drawing::Graphics ^ g, System::Drawing::Image ^ image, System::Drawing::Rectangle r, System::Drawing::ContentAlignment align);
protected void DrawImage (System.Drawing.Graphics g, System.Drawing.Image image, System.Drawing.Rectangle r, System.Drawing.ContentAlignment align);
member this.DrawImage : System.Drawing.Graphics * System.Drawing.Image * System.Drawing.Rectangle * System.Drawing.ContentAlignment -> unit
Protected Sub DrawImage (g As Graphics, image As Image, r As Rectangle, align As ContentAlignment)

Parâmetros

g
Graphics

A superfície Graphics na qual desenhar.The Graphics surface on which to draw.

image
Image

O Image a ser desenhado.The Image to draw.

r
Rectangle

Os limites de Rectangle dentro dos quais desenhar.The Rectangle bounds to draw within.

align
ContentAlignment

O alinhamento da imagem a ser desenhado no Label.The alignment of the image to draw within the Label.

Notas aos Herdeiros

Ao criar seu próprio controle que deriva de Label, você pode usar esse método para desenhar imagens na superfície do controle.When you are creating your own control that derives from Label, you can use this method to draw images onto the surface of the control.

Aplica-se a

Veja também