Page 1 of 1

x/y coordinates of marked points

Posted: 21 Apr 2024, 03:40
by Rudi
Is there a way to get a list of all marked points in an image?
X/Y pixel coordinate will be fine.

Re: x/y coordinates of marked points

Posted: 24 Apr 2024, 00:26
by fabdev
Yes, using a script:

Image.Points.Count

returns how many points are selected.
and:

x,y = Image.Points.Get(i)

returns the coordinates of the #i point.
See in the Guide: Scripts / Function(Images) , "Points and Rectangles" near the end of the page.
Fabio.

Re: x/y coordinates of marked points

Posted: 24 Apr 2024, 03:43
by Rudi
Thanks Fabio! Just what I needed...