| ImageEn, unit iexHelperFunctions |
|
CreateWallpaperBitmap
CreateWallpaperBitmap
Declaration
function CreateWallpaperBitmap(Effect: TWallpaperEffect; Color1, Color2: TColor; Size: Integer = -1; Spacing: Integer = -1; Thickness: 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
| 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
◼All TBitmap Methods