ImageEn, unit hyiedefs

TIEBackgroundStyle


Declaration

TIEBackgroundStyle = (iebsSolid, iebsHorizontal, iebsVertical, iebsFDiagonal, iebsBDiagonal, iebsCross, iebsDiagCross, iebsChessboard, iebsDiagonals, iebsCropped, iebsCropShadow, iebsGradient, iebsSoftShadow, iebsPhotoLike, iebsBlurredImage, iebsPaper, iebsMetal);


Description

Value Description
iebsCropped * A border is shown around the image (instead of around the edge of the ImageEnView). Best used with ImageEnView.BorderStyle=bsNone and Center=True
iebsCropShadow * A solid shadow is drawn around the image (See also: iebsSoftShadow)
iebsChessboard Background has chessboard pattern (customize the style using SetChessboardStyle)
iebsDiagonals Background has diagonal pattern
iebsSolid Background is a solid color (see Background)
iebsHorizontal Same as bsHorizontal of TBrushStyle
iebsVertical Same as bsVertical of TBrushStyle
iebsFDiagonal Same as bsFDiagonal of TBrushStyle
iebsBDiagonal Same as bsBDiagonal of TBrushStyle
iebsCross Same as bsCross of TBrushStyle
iebsDiagCross Same as bsDiagCross of TBrushStyle
iebsGradient Background is a gradient of two colors (specified with Background and GradientEndColor. Direction is specified by GradientDir)
iebsSoftShadow * A soft (gaussian) shadow is drawn around the image
iebsPhotoLike * The image is drawn with a black border. If a custom Background has not been specified then the background will be dark gray
iebsBlurredImage * The current image is shown blurred and zoomed to fill the window (can be slow)
iebsPaper A paper style background
iebsMetal A brushed metal style background
* These styles are not supported by TImageEnMView


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.GradientDir      := gpgVertical;
ImageEnView1.Background       := clWhite;
ImageEnView1.GradientEndColor := $00FF8000;




ImageEnView1.BackgroundStyle  := iebsGradient;
ImageEnView1.GradientDir      := gpgVertical;
ImageEnView1.Background       := clWhite;
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;





Examples

ImageEnView1.BackgroundStyle := iebsBlurredImage;




// White and gray chessboard background for image, and clBtnFace outside the image
ImageEnView1.BackgroundOuter  := clBtnFace;
ImageEnView1.BackgroundStyle  := iebsChessboard;
ImageEnView1.Background       := clWhite;
ImageEnView1.BackgroundColor2 := $00E9E9E9;