ImageEn, unit iexLayers

TIEPolylineLayer.SimplifyPolygon2

TIEPolylineLayer.SimplifyPolygon2

Declaration

procedure SimplifyPolygon2(Tolerance: Double);

Description

Removes vertices from a polyline that contribute little to its shape.
Tolerance specifies the minimum distance a vertex can be from an imaginary line drawn between its two adjacent vertices.

See also: SimplifyPolygon

Note: SimplifyPolygon2 will disable EnableComplexPath

Demo

Demo  Demos\LayerEditing\MagicFillToPolygon\Magic2Polygon.dpr

Example

TIEPolylineLayer( ImageEnView1.CurrentLayer ).SimplifyPolygon2( 1.5 );
ImageEnView1.Update();