Vcl.Graphics.TCustomCanvas.Draw

From RAD Studio API Documentation
Jump to: navigation, search

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 */;

Properties

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

Description

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).

See Also