API:Vcl.Graphics.TCanvas.Draw
Delphi
procedure Draw(X, Y: Integer; Graphic: TGraphic); overload; override;
procedure Draw(X, Y: Integer; Graphic: TGraphic; Opacity: Byte); overload; override;
C++
virtual void __fastcall Draw(int X, int Y, TGraphic* Graphic)/* overload */;
virtual void __fastcall Draw(int X, int Y, TGraphic* Graphic, System::Byte Opacity)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Vcl.Graphics.pas Vcl.Graphics.hpp |
Vcl.Graphics | TCanvas |
Description
Renders the graphic specified by the Graphic parameter on the canvas at the location given by the coordinates (X, Y).
Vcl.Graphics.TCanvas.Draw inherits from Vcl.Graphics.TCustomCanvas.Draw. All content below this line refers to Vcl.Graphics.TCustomCanvas.Draw.
Renders the graphic specified by the Graphic parameter on the canvas at the location given by the coordinates (X, Y).
Override the Draw method to implement the drawing of a graphic on the canvas. Draw calls the Draw method of the graphic. The image is rendered into a rectangle determined by the size of the graphic, with the upper-left corner at the point (X, Y).