TTMSFNCGraphics.DrawBitmapPartSync Method
Draws a bitmap part synchronously and returns the resulting bitmap. On web targets this method is async; on all other targets it completes immediately.
API unit family: TMSFNCGraphics
Declaring type: TTMSFNCGraphics
Syntax
function DrawBitmapPartSync(ASourceLeft: Double; ASourceTop: Double; ASourceRight: Double; ASourceBottom: Double; ADestinationLeft: Double; ADestinationTop: Double; ADestinationRight: Double; ADestinationBottom: Double; ABitmap: TTMSFNCBitmapHelperClass; AAspectRatio: Boolean = True; AStretch: Boolean = False; ACenter: Boolean = True; ACropping: Boolean = False): TTMSFNCBitmap; virtual;
Parameters
| Name | Description |
|---|---|
ASourceLeft |
Left edge of the source region in the bitmap, in pixels. |
ASourceTop |
Top edge of the source region in the bitmap, in pixels. |
ASourceRight |
Right edge of the source region in the bitmap, in pixels. |
ASourceBottom |
Bottom edge of the source region in the bitmap, in pixels. |
ADestinationLeft |
Left edge of the destination area on the canvas, in pixels. |
ADestinationTop |
Top edge of the destination area on the canvas, in pixels. |
ADestinationRight |
Right edge of the destination area on the canvas, in pixels. |
ADestinationBottom |
Bottom edge of the destination area on the canvas, in pixels. |
ABitmap |
Bitmap from which the source region is sampled. |
AAspectRatio |
When True, preserves the source region's aspect ratio. Default is True. |
AStretch |
When True, stretches the region to fill the destination. Default is False. |
ACenter |
When True, centers the result within the destination. Default is True. |
ACropping |
When True, crops the result to fill the destination entirely. Default is False. |
Returns
A new TTMSFNCBitmap containing the rendered bitmap part.