Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
andyhill
Posted - Apr 23 2016 : 20:46:06 Please show me how to iterate ImageEnVect Polygon Objects reading each objects Point X,Y values and changing and saving the Point X,Y values.
for i:= 0 to ieVect.ObjectCount-1 do begin
if ieVect.Object[i] = Polygon then begin
for j:= 0 to ieVect.Object[i].PointsCount-1 do begin
ieVect.Object[i].Points[j].X:= ieVect.Object[i].Points[j].X+10;
end;
end;
end;
Thanks
Andy
4 L A T E S T R E P L I E S (Newest First)
andyhill
Posted - Apr 26 2016 : 22:13:31 Thanks, I had expected fetching a TPoint array but I can do it one point at a time if I must.
procedure SetObjPolylinePoints(hobj: integer; Points: array of TPoint);
Description SetObjPolylinePoints specifies the points that compose the polyline for the polyline object hobj. The points are specified in bitmap coordinates.
hobj is the ID of the object. You can also specify IEV_NEXT_INSERTED_OBJECT (-1) which refers to the next object to be inserted or IEV_PREVIOUS_INSERTED_OBJECT (-2) for the last object inserted.