Skip to main content
Pie
ra0

TcxCanvas.Draw(Integer,Integer,TGraphic,Byte) Method

Draws a specified image on the canvas.

Declaration

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

Parameters

Name Type
X Integer
Y Integer
Graphic TGraphic
Opacity Byte

Remarks

Call this procedure and pass an image container as the Graphic parameter to draw its content on the canvas. Use the X and Y parameters to specify the image origin’s position as offsets in pixels. The second overloaded procedure allows you to blend the image with the canvas. Use the Opacity parameter to pass an opacity level.

See Also