ImageEn, unit ieview

TIEView.BackgroundColor2

TIEView.BackgroundColor2


Declaration

property BackgroundColor2: TColor;


Description

Specifies the secondary color when BackgroundStyle is one of iebsHorizontal, iebsVertical, iebsFDiagonal, iebsBDiagonal, iebsCross, iebsDiagCross, iebsChessboard.
For iebsGlow, it specifies the glow color (defaulting to "Soft Gold" #E8C8A0).
If BackgroundColor2 is clNone, then the secondary background color will be NOT Background

Note: If BackgroundStyle = iebsGradient, then GradientEndColor specifies the secondary color

Default: clNone


Examples

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

// White and gray chessboard background (can also use SetChessboardStyle)
ImageEnView1.BackgroundStyle   := iebsChessboard;
ImageEnMView1.Background       := clWhite;
ImageEnMView1.BackgroundColor2 := $00E9E9E9;

// Draw with a gold glow
ImageEnView1.BackgroundStyle  := iebsGlow;
ImageEnView1.BackgroundColor2 := clSoftGold;




See Also

Background
SetChessboardStyle
BackgroundStyle
GradientDir
GradientEndColor
Wallpaper
WallpaperStyle