ImageEn, unit ieview

TIEView.Wallpaper

TIEView.Wallpaper


Declaration

property Wallpaper: TPicture;


Description

Sets a background image that appears behind the image/thumbnails.
Use WallpaperStyle to specify how the wallpaper is painted.

Note: In TImageEnView, you will only see the background if the image (layer 0) is smaller than the control. If an image has not yet been loaded then the image will be the same size as the control, so to see the background reduce the size of the image, e.g. ImageEnView1.IEBitmap.Allocate( 1, 1 );


Demo

Demo  Demos\Multi\Thumbnails2\Thumbnails2.dpr


Examples

// Tile a bitmap over the TImageEnMView background (behind thumbnails
ImageEnMView1.WallpaperStyle := iewoTile;
ImageEnMView1.Wallpaper.LoadFromFile('D:\MyWallpaper.bmp');



// Tile a bitmap over the TImageEnView background (behind the main image and layers)
ImageEnView1.WallpaperStyle := iewoTile;
ImageEnView1.Wallpaper.LoadFromFile('D:\MyWallpaper.bmp');
ImageEnView1.Update();

// Clear the wallpaper
ImageEnView1.Wallpaper := nil;