ImageEn, unit iexLayers

TIEShapeLayer.FillGradient

TIEShapeLayer.FillGradient


Declaration

property FillGradient: TIEGDIPlusGradient;


Description

The direction of the gradient used for the shape fill.
If FillColor is different from FillColor2 the shape is filled with a gradient. FillGradient specifies the direction.
To disable the gradient set the FillColor2 to clNone, or FillGradient to gpgNone.



Default: gpgVertical


Example

// Set a vertical gradient fill for an ellipse
ImageEnView1.CurrentLayer.FillColor2 := clRed;
ImageEnView1.CurrentLayer.FillColor := clYellow;
ImageEnView1.CurrentLayer.FillGradient := gpgVertical;
ImageEnView1.CurrentLayer.BorderWidth := 0;
ImageEnView1.Update();




See Also

TIELayer.FillGradient
FillColor
FillColor2
FillOpacity