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 );
By default, in TImageEnView the specified background fills the entire control. Alternatively, you can specify a color for the non-image area, and background will only fill the image area

ImageEnView1.BackgroundStyle := iebsBlurredImage;




Examples

// SOLID

ImageEnView1.BackgroundStyle := iebsSolid;
ImageEnView1.Background      := clWhite;




ImageEnView1.BackgroundStyle := iebsSolid;
ImageEnView1.Background      := clWhite;
ImageEnView1.BackgroundOuter := clBtnFace;




// HORIZONTAL LINES

ImageEnView1.BackgroundStyle := iebsHorizontal;
ImageEnView1.Background       := clWhite;
ImageEnView1.BackgroundColor2 := $00E9E9E9;




ImageEnView1.BackgroundStyle  := iebsHorizontal;
ImageEnView1.Background       := clWhite;
ImageEnView1.BackgroundColor2 := $00E9E9E9;
ImageEnView1.BackgroundOuter  := clBtnFace;




// VERTICAL LINES

ImageEnView1.BackgroundStyle  := iebsVertical;
ImageEnView1.Background       := clWhite;
ImageEnView1.BackgroundColor2 := $00E9E9E9;




ImageEnView1.BackgroundStyle  := iebsVertical;
ImageEnView1.Background       := clWhite;
ImageEnView1.BackgroundColor2 := $00E9E9E9;
ImageEnView1.BackgroundOuter  := clBtnFace;




// DIAGONAL LINES 1

ImageEnView1.BackgroundStyle  := iebsFDiagonal;
ImageEnView1.Background       := clWhite;
ImageEnView1.BackgroundColor2 := $00E9E9E9;




ImageEnView1.BackgroundStyle  := iebsFDiagonal;
ImageEnView1.Background       := clWhite;
ImageEnView1.BackgroundColor2 := $00E9E9E9;
ImageEnView1.BackgroundOuter  := clBtnFace;




// DIAGONAL LINES 2

ImageEnView1.BackgroundStyle  := iebsBDiagonal;
ImageEnView1.Background       := clWhite;
ImageEnView1.BackgroundColor2 := $00E9E9E9;




ImageEnView1.BackgroundStyle  := iebsBDiagonal;
ImageEnView1.Background       := clWhite;
ImageEnView1.BackgroundColor2 := $00E9E9E9;
ImageEnView1.BackgroundOuter  := clBtnFace;




// CROSS HATCH

ImageEnView1.BackgroundStyle  := iebsCross;
ImageEnView1.Background       := clWhite;
ImageEnView1.BackgroundColor2 := $00E9E9E9;




ImageEnView1.BackgroundStyle  := iebsCross;
ImageEnView1.Background       := clWhite;
ImageEnView1.BackgroundColor2 := $00E9E9E9;
ImageEnView1.BackgroundOuter  := clBtnFace;




// DIAGONAL CROSS HATCH

ImageEnView1.BackgroundStyle  := iebsDiagCross;
ImageEnView1.Background       := clWhite;
ImageEnView1.BackgroundColor2 := $00E9E9E9;




ImageEnView1.BackgroundStyle  := iebsDiagCross;
ImageEnView1.Background       := clWhite;
ImageEnView1.BackgroundColor2 := $00E9E9E9;
ImageEnView1.BackgroundOuter  := clBtnFace;




// CHESSBOARD

ImageEnView1.BackgroundStyle := iebsChessboard;
ImageEnView1.SetChessboardStyle( 16, bsSolid, clWhite, $00E9E9E9 );




ImageEnView1.BackgroundStyle := iebsChessboard;
ImageEnView1.SetChessboardStyle( 16, bsSolid, clWhite, $00E9E9E9 );
ImageEnView1.BackgroundOuter := clBtnFace;




// DIAGONALS

ImageEnView1.BackgroundStyle  := iebsDiagonals;
ImageEnView1.Background       := clWhite;
ImageEnView1.BackgroundColor2 := $00E9E9E9;




ImageEnView1.BackgroundStyle  := iebsDiagonals;
ImageEnView1.Background       := clWhite;
ImageEnView1.BackgroundColor2 := $00E9E9E9;
ImageEnView1.BackgroundOuter  := clBtnFace;




// BORDERED IMAGE

ImageEnView1.BackgroundStyle := iebsCropped;
ImageEnView1.BorderStyle     := bsNone;




// IMAGE WITH SHADOW

ImageEnView1.BackgroundStyle  := iebsCropShadow;
ImageEnView1.Background       := clWhite;




ImageEnView1.BackgroundStyle  := iebsCropShadow;
ImageEnView1.Background       := clWhite;
ImageEnView1.BackgroundOuter  := clBtnFace;




// GRADIENT

ImageEnView1.BackgroundStyle  := iebsGradient;
ImageEnView1.Background       := clWhite;
ImageEnView1.GradientDir      := gpgVertical;
ImageEnView1.GradientEndColor := $00FF8000;




ImageEnView1.BackgroundStyle  := iebsGradient;
ImageEnView1.Background       := clWhite;
ImageEnView1.GradientDir      := gpgVertical;
ImageEnView1.GradientEndColor := $00FF8000;
ImageEnView1.BackgroundOuter  := clBtnFace;




ImageEnView1.BackgroundStyle  := iebsGradient;
ImageEnView1.GradientDir      := gpgVertCenter;
ImageEnView1.Background       := $00FF80FF; // Pink
ImageEnView1.GradientEndColor := $00FF8000; // Blue




ImageEnView1.BackgroundStyle  := iebsGradient;
ImageEnView1.GradientDir      := gpgDiagonal;
ImageEnView1.Background       := $00FF80FF; // Pink
ImageEnView1.GradientEndColor := $00FF8000; // Blue




// IMAGE WITH SOFT SHADOW

ImageEnView1.BackgroundStyle  := iebsSoftShadow;
ImageEnView1.Background       := clWhite;




ImageEnView1.BackgroundStyle  := iebsSoftShadow;
ImageEnView1.Background       := clWhite;
ImageEnView1.BackgroundOuter  := clBtnFace;




// BLACK BORDER

ImageEnView1.BackgroundStyle  := iebsPhotoLike;




ImageEnView1.BackgroundStyle  := iebsPhotoLike;
ImageEnView1.BackgroundOuter  := clBtnFace;




// BLURRED IMAGE BACKGROUND

ImageEnView1.BackgroundStyle := iebsBlurredImage;




See Also

Background
BackgroundColor2
GradientDir
GradientEndColor
Wallpaper
WallpaperStyle