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

See also: SimplifyPolygon2

Note: Uses the Douglas-Peucker recursive simplification routine


Demo

Demo  Demos\LayerEditing\MagicFillToPolygon\Magic2Polygon.dpr


Example

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