ImageEn, unit iexLayers

TIEPolylineLayer.FillColor2

TIEPolylineLayer.FillColor2


Declaration

property FillColor2: TColor;


Description

The end color for the polygon gradient.
If FillColor2 is clNone, the polygon is filled by a solid color specified by FillColor. If FillColor2 is different from FillColor it is drawn as a gradient.
The direction of the gradient is specified by FillGradient.

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

Default: clNone


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();



// Disable the gradient fill
TIEPolylineLayer( ImageEnView1.CurrentLayer ).FillColor2 := clNone;
ImageEnView1.Update();




See Also

- TIELayer.FillColor2
- FillColor
- FillGradient
- FillOpacity