TTMSFNCSVGImageCollection.Draw Method
Draws the image at the specified index into a rectangle on the canvas.
API unit family: TMSFNCTypes
Declaring type: TTMSFNCSVGImageCollection
Overloads
Overload 1
Draws the image at the specified index into a rectangle on the canvas.
procedure Draw(ACanvas: TCanvas; ARect: TRect; AIndex: Integer; AProportional: Boolean = False); overload; override;
Parameters
| Name | Description |
|---|---|
ACanvas |
The canvas to draw on. |
ARect |
The destination rectangle. |
AIndex |
Zero-based index of the image to draw. |
AProportional |
When True, the image is scaled proportionally within the rectangle. |
Overload 2
Draws the image at the specified index at a given canvas position.
procedure Draw(ACanvas: TCanvas; X, Y: Integer; AIndex: Integer; AProportional: Boolean = False); overload; virtual;
Parameters
| Name | Description |
|---|---|
ACanvas |
The canvas to draw on. |
X |
Horizontal position. |
Y |
Vertical position. |
AIndex |
Zero-based index of the image to draw. |
AProportional |
When True, the image is scaled proportionally. |