ImageEn, unit iexLayers

TIEPolylineLayer.RemovePoint

TIEPolylineLayer.RemovePoint


Declaration

procedure RemovePoint(Index: integer); overload;
procedure RemovePoint(FromIndex, ToIndex: integer); overload;


Description

Removes point of Index from a Polyline.
Second overload removes multiple points from FromIndex to ToIndex inclusive. If ToIndex >= PointCount the point list is truncated.


Examples

// Remove the last point from the selected Polyline
TIEPolylineLayer( ImageEnView1.CurrentLayer ).RemovePoint( TIEPolylineLayer( ImageEnView1.CurrentLayer ).PointCount - 1 );
ImageEnView1.Update();

// Remove points 3, 4, 5 and 6 from the selected Polyline
TIEPolylineLayer( ImageEnView1.CurrentLayer ).RemovePoint( 3, 6 );
ImageEnView1.Update();

// Remove all points after 2
TIEPolylineLayer( ImageEnView1.CurrentLayer ).RemovePoint( 3, MAXINT );
ImageEnView1.Update();


See Also

 AddPoint
 SetPoints
 Points