Declaration ​
pascal
procedure TileTo(hDst: HDC; const DstRect, SrcRect: TRect; MaxTileSize: integer = 1024);Parameters ​
| Parameter | Type | Description |
|---|---|---|
hDst | HDC | Target GDI device context handle. |
DstRect | TRect | Target destination rectangle to fill with repeating tiles. |
SrcRect | TRect | Source sub-rectangle of this bitmap used as the tile unit. |
MaxTileSize | Integer | Maximum tile chunk size limit (default 1024). |
Description ​
TileTo tiles the source sub-rectangle SrcRect repeatedly across DstRect on the target GDI device context hDst.
Example ​
pascal
Bitmap.TileTo(Canvas.Handle, Canvas.ClipRect, Bitmap.BoundsRect);