ImageEn, unit iexHelperFunctions

CreateWallpaperBitmap


Declaration

function CreateWallpaperBitmap(Effect: TWallpaperEffect; Color1, 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: You must add the iexHelperFunctions unit to your uses clause


Demo

Demo  Demos\Other\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
FillWithWallpaper