ImageEn, unit iexLayers

TIEShapeLayer.FillGradient

TIEShapeLayer.FillGradient


Declaration


property FillGradient: TIELayerGradient;


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 grdNone.

Default: grdVertical


Example


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




Compatibility Information


Prior to v8.0.0, FillGradient was of type TIEGradientDir. With the implementation of new gradient types in 8.0.0, the type was changed to TIELayerGradient. In your code, change references to gdVertical to grdVertical and gdHorizontal to grdHorizontal


See Also


- TIELayer.FillGradient
- FillColor
- FillColor2
- FillOpacity