Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32🞂TBitmap32🞂TileToMethodPublic

TBitmap32.TileTo

Tiles a sub-rectangle of this bitmap repeatedly onto a target GDI device context (HDC).

Declaration ​

pascal
procedure TileTo(hDst: HDC; const DstRect, SrcRect: TRect; MaxTileSize: integer = 1024);

Parameters ​

ParameterTypeDescription
hDstHDCTarget GDI device context handle.
DstRectTRectTarget destination rectangle to fill with repeating tiles.
SrcRectTRectSource sub-rectangle of this bitmap used as the tile unit.
MaxTileSizeIntegerMaximum 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);