Vcl.Graphics.TCustomCanvas.Draw

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

procedure Draw(X, Y: Integer; Graphic: TGraphic); overload; virtual; abstract;
procedure Draw(X, Y: Integer; Graphic: TGraphic; Opacity: Byte); overload; virtual; abstract;

C++

virtual void __fastcall Draw(int X, int Y, TGraphic* Graphic) = 0 /* overload */;
virtual void __fastcall Draw(int X, int Y, TGraphic* Graphic, System::Byte Opacity) = 0 /* overload */;

Propriétés

Type Visibilité  Source Unité  Parent
procedure
function
public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TCustomCanvas

Description

Restitue le graphique spécifié par le paramètre Graphic dans le canevas à l'emplacement spécifié par les coordonnées (X, Y).

Redéfinissez la méthode Draw pour implémenter le dessin d'un graphique sur le canevas. Draw appelle la méthode Draw du graphique. L'image est restituée dans le rectangle délimité par la taille du graphique, son coin supérieur gauche étant placé en (X, Y).

Voir aussi