ImageEn, unit iexLayers

TIEPolylineLayer.SimplifyPolygon

TIEPolylineLayer.SimplifyPolygon


Declaration

procedure SimplifyPolygon(MaxPoints: integer);


Description

Replaces a high resolution polyline with a lower resolution polyline with fewer vertices (MaxPoints).


Demo

Demo  Demos\LayerEditing\MagicFillToPolygon\Magic2Polygon.dpr


Example

TIEPolylineLayer( ImageEnView1.CurrentLayer ).SimplifyPolygon(30); // simplify the polygon to max 30 points
ImageEnView1.Update();