TIEPolylineLayer.SimplifyPolygon
Declaration
procedure SimplifyPolygon(MaxPoints: integer);
Description
Replaces a high resolution polyline with a lower resolution polyline with fewer vertices (MaxPoints).
See also:
SimplifyPolygon2Note: Uses the Douglas-Peucker recursive simplification routine
| Demos\LayerEditing\MagicFillToPolygon\Magic2Polygon.dpr |
TIEPolylineLayer( ImageEnView1.CurrentLayer ).SimplifyPolygon(30); // simplify the polygon to max 30 points
ImageEnView1.Update();