ImageEn, unit imageenview

TImageEnView.Background

TImageEnView.Background


Declaration

property Background: TColor;


Description

Specifies the background color, which is shown in the unoccupied area of the window (when the current image is smaller than the ImageEnView).
This color is used also in geometric processing (such as rotation) to fill blank areas.

Note:
If an image has been loaded, you won't see the background color when the image fully overlaps the background. To force display of the background, reset the image using Clear
If a standard color, such as clBtnFace is used, it may be overridden by VCL theming colors. Set EnableTheming to false to prevent this
By default, Background fills the entire control. Alternatively, you can specify a color for the non-image area, and background will only fill the image area

Default: clBtnFace


Example

// Rotate of 30 degrees and fill blank spaces with clBlack color
ImageEnView1.Background := clBlack;
ImageEnView1.Proc.Rotate(30, False);

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




See Also

BackgroundStyle
BackgroundOuter
BackgroundColor2
GradientDir
GradientEndColor
Wallpaper
WallpaperStyle