ImageEn, unit iexLayers

TIEPolylineLayer.SetPoint

TIEPolylineLayer.SetPoint


Declaration

procedure SetPoint(index: integer; X, Y: integer; PointBase: TIEPointBase = iepbRange; SnapAngles: Boolean = False);


Description

Sets the point of the specified index.
Each point of the polyline is represented by an x and y value in the range 0 to 1000. Where (0, 0) is the top-left pixel of the layer and (1000, 1000) is the bottom-right. Values less than 0 or more than 1000 will increase the size of the layer.

Parameter Description
X, Y The point to add
PointBase What base units point values are specified in
SnapAngles Set to true to adjust the angle to ensure it aligns with LayersRotateStep (e.g. force it to 45 deg. steps)


Examples

// Set second point at 500, 0
TIEPolylineLayer( ImageEnView1.CurrentLayer ).SetPoint( 1, 500, 0 );
ImageEnView1.Update();

// Set the second point that will double the width of the layer
TIEPolylineLayer( ImageEnView1.CurrentLayer ).SetPoint( 1, 130, 2000 );
ImageEnView1.Update();


See Also

 SetPoints
 AddPoint
 Points
 PointCount