ImageEn, unit iexLayers

TIEPolylineLayer.FillGradient

TIEPolylineLayer.FillGradient


Declaration

property FillGradient: TIEGDIPlusGradient;


Description

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



Note: To create a polygon, you must close the polyline using PolylineClosed.

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