Label.DrawImage(Graphics, Image, Rectangle, ContentAlignment) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Dessine une Image limite spécifiée.
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)
Paramètres
- align
- ContentAlignment
Alignement de l’image à dessiner dans le Label.
Notes pour les héritiers
Lorsque vous créez votre propre contrôle qui dérive Labelde , vous pouvez utiliser cette méthode pour dessiner des images sur la surface du contrôle.