ImageEn, unit iexHelperFunctions

TIEBitmapHelper.FillWithWallpaper

TIEBitmapHelper.FillWithWallpaper


Declaration

procedure FillWithWallpaper(Effect: TWallpaperEffect; Color1, Color2: TColor;
                            iWidth: Integer = -1; iHeight: Integer = -1;
                            iSize: Integer = -1; iSpacing: integer = -1; iThickness: Integer = -1);


Description

Fills the bitmap with tiled wallpaper (i.e. which can be tiled).
If Width/Height are not -1,-1 the bitmap will be resized.
iSize/iSpacing/iThickness can be used to customize some styles.

Note:
 You must add the iexHelperFunctions unit to your uses clause
 If attached to a TImageEnView, it will automatically call Update


Demos

Demo  \Demos\Other\WallpaperMaker\CreateWallpaper.dpr
Demo  Demos\ImageEditing\EveryMethod\EveryMethod.dpr


Example

// Create a checkered wallpaper image
bmp.FillWithWallpaper( wpDiagCheckers, $00FF8000, clWhite, Screen.Width, Screen.Height );