| ImageEn, unit iexCanvasUtils |
|
TileBitmapOntoCanvas
TileBitmapOntoCanvas
Declaration
Procedure TileBitmapOntoCanvas(Canvas: TCanvas; iWidth, iHeight: Integer; Bitmap: TBitmap; StartX: Integer = 0; StartY: Integer = 0); overload;
Procedure TileBitmapOntoCanvas(Canvas: TCanvas; iWidth, iHeight: Integer; Graphic: TGraphic; StartX: Integer = 0; StartY: Integer = 0); overload;
Description
Fill the canvas by tiling the specified bitmap (i.e. for wallpaper type effects).
Note:
◼Defined in iexCanvasUtils unit
◼iWidth/iHeight are minimums. Drawing may occur beyond these values because the source bitmap completes the final draw
Example
// Create a checkered wallpaper image
WPBmp := CreateWallpaperBitmap( wpDiagCheckers, clRed, clWhite );
TileBitmapOntoCanvas( DestBmp.Canvas, DestBmp.Width, DestBmp.Height, WPBmp );
WPBmp.Free();
See Also
◼CreateWallpaperBitmap