ImageEn, unit ieXCanvasUtils

CreateWallpaperBitmap

CreateWallpaperBitmap


Declaration


function CreateWallpaperBitmap(Effect : TWallpaperEffect; Color1 : TColor; Color2 : TColor; iSize : Integer = -1; iSpacing : integer = -1; iThickness: Integer = -1) : TBitmap;


Description


Create a bitmap suitable for use as HTML wallpaper (i.e. which can be tiled). Result is a TBitmap if the method succeeds. You MUST FREE the bitmap.
           
Note: Defined in iexCanvasUtils unit


Demo


  \Demos\UserDemos\WallpaperMaker\CreateWallpaper.dpr



Example


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


See Also


- TileBitmapOntoCanvas