ImageEn, unit ieview

TIEView.BackgroundStyle

TIEView.BackgroundStyle


Declaration

property BackgroundStyle: TIEBackgroundStyle;


Description

Specifies the style of the background (the region of the window that is not filled by the image/thumbnails).

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 );


Examples

ImageEnView1.BackgroundStyle := iebsPhotoLike;

// Small chessboard background
ImageEnMView1.BackgroundStyle := iebsChessboard;
ImageEnMView1.SetChessboardStyle(5, bsSolid);

// White and gray chessboard background
ImageEnView1.BackgroundStyle := iebsChessboard;
ImageEnView1.SetChessboardStyle( 12, bsSolid, clWhite, $00E9E9E9 );

// Solid white background
ImageEnMView1.BackgroundStyle := iebsSolid;
ImageEnMView1.Background := clWhite;

// Diagonal white and black background
ImageEnMView1.BackgroundStyle := iebsDiagCross;
ImageEnMView1.Background := clWhite;
ImageEnMView1.BackgroundColor2 := clBlack;

// Navy -> Black gradient background
ImageEnMView1.BackgroundStyle := iebsGradient;
ImageEnMView1.Background := clNavy;
ImageEnMView1.GradientEndColor := clBlack;


See Also

- Background
- BackgroundColor2
- GradientEndColor
- Wallpaper
- WallpaperStyle