ImageEn, unit iexCanvasUtils

TileBitmapOntoCanvas


Declaration

Procedure TileBitmapOntoCanvas(Canvas: TCanvas; iWidth, iHeight: Integer; Bitmap: TBitmap); overload;
Procedure TileBitmapOntoCanvas(Canvas: TCanvas; iWidth, iHeight: Integer; Graphic: TGraphic); overload;


Description

Fill the canvas by tiling the specified bitmap (i.e. for wallpaper type effects).



Note: Defined in iexCanvasUtils unit


Example

// Create a checkered wallpaper image
WPBmp := CreateWallpaperBitmap( wpDiagCheckers, clRed, clWhite );
TileBitmapOntoCanvas( DestBmp.Canvas, DestBmp.Width, DestBmp.Height, WPBmp );
WPBmp.Free;


See Also

CreateWallpaperBitmap