TTMSFNCGraphics.DrawBitmapPart Method
Draws a portion of
ABitmapdefined by double source coordinates into a double destination rectangle.
API unit family: TMSFNCGraphics
Declaring type: TTMSFNCGraphics
Overloads
Overload 1
Draws a portion of
ABitmapdefined by double source coordinates into a double destination rectangle.
procedure DrawBitmapPart;
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 within the destination. Default is True. |
AStretch |
When True, stretches the bitmap to fill the destination even when aspect ratio is preserved. Default is False. |
ACenter |
When True, centers the bitmap within the destination rectangle. Default is True. |
ACropping |
When True, crops the bitmap to fill the destination entirely, discarding pixels outside the destination bounds. Default is False. |
Overload 2
Draws a portion of
ABitmapdefined by a floating-point source rectangle into a floating-point destination rectangle.
procedure DrawBitmapPart;
Parameters
| Name | Description |
|---|---|
ASourceRect |
Region of the bitmap to draw. |
ADestinationRect |
Area on the canvas that receives the bitmap portion. |
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 bitmap to fill the destination. Default is False. |
ACenter |
When True, centers the bitmap within the destination. Default is True. |
ACropping |
When True, crops the bitmap to fill the destination entirely. Default is False. |
Overload 3
Draws a portion of
ABitmapdefined by integer source coordinates into an integer destination rectangle.
procedure DrawBitmapPart;
Parameters
| Name | Description |
|---|---|
ASourceLeft |
Left edge of the source region in the bitmap, in integer pixels. |
ASourceTop |
Top edge of the source region in the bitmap, in integer pixels. |
ASourceRight |
Right edge of the source region in the bitmap, in integer pixels. |
ASourceBottom |
Bottom edge of the source region in the bitmap, in integer pixels. |
ADestinationLeft |
Left edge of the destination area on the canvas, in integer pixels. |
ADestinationTop |
Top edge of the destination area on the canvas, in integer pixels. |
ADestinationRight |
Right edge of the destination area on the canvas, in integer pixels. |
ADestinationBottom |
Bottom edge of the destination area on the canvas, in integer 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 bitmap to fill the destination. Default is False. |
ACenter |
When True, centers the bitmap within the destination. Default is True. |
ACropping |
When True, crops the bitmap to fill the destination entirely. Default is False. |
Overload 4
Draws a portion of
ABitmapdefined by an integer source rectangle into an integer destination rectangle.
procedure DrawBitmapPart;
Parameters
| Name | Description |
|---|---|
ASourceRect |
Region of the bitmap to draw, in integer pixels. |
ADestinationRect |
Area on the canvas that receives the bitmap portion, in integer 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 bitmap to fill the destination. Default is False. |
ACenter |
When True, centers the bitmap within the destination. Default is True. |
ACropping |
When True, crops the bitmap to fill the destination entirely. Default is False. |