ImageEn, unit iexLayers

TIEPolylineLayer.PolylineClosed

TIEPolylineLayer.PolylineClosed


Declaration


property PolylineClosed: boolean;


Description


Set PolylineClosed to True to connect the first and final points of the polyline. This will create a polygon.

Notes:
- If the polygon is closed it will be filled using FillColor
- Auto-closing of the polyline layer when using polyline interaction options controlled by LayersAutoClosePolylines

Default: False


Example


// Draw a polyline
With TIEPolylineLayer( ImageEnView1.CurrentLayer ) do
begin
  ClearAllPoints();
  AddPoint( 500, 0 );
  AddPoint( 1000, 1000 );
  AddPoint( 0, 1000 );
end;
ImageEnView1.Update();



// Close the polyline, to create a polygon
TIEPolylineLayer( ImageEnView1.CurrentLayer ).PolylineClosed := True;
ImageEnView1.CurrentLayer.FillColor := clYellow;
ImageEnView1.Update();