GIMP Chat
http://gimpchat.com/

Convert a selection into an array of coordinates/points
http://gimpchat.com/viewtopic.php?f=9&t=18348
Page 1 of 1

Author:  ocp1000 [ Fri May 15, 2020 2:48 pm ]
Post subject:  Convert a selection into an array of coordinates/points

Hello,
I'd like to know if there's an option to convert a selection (like a selection done using the Fuzzy select tool) into an array of coordinates that comprise that selection.

Author:  Wallace [ Fri May 15, 2020 2:57 pm ]
Post subject:  Re: Convert a selection into an array of coordinates/points

ocp1000 wrote:
Hello,
I'd like to know if there's an option to convert a selection (like a selection done using the Fuzzy select tool) into an array of coordinates that comprise that selection.

You can use the Select>To Path option,
within the Selection Menu.

Author:  ofnuts [ Fri May 15, 2020 3:49 pm ]
Post subject:  Re: Convert a selection into an array of coordinates/points

ocp1000 wrote:
Hello,
I'd like to know if there's an option to convert a selection (like a selection done using the Fuzzy select tool) into an array of coordinates that comprise that selection.


If you convert the selection into a path, the path is expressed as a set of cubic Bézier splines (aka "strokes"). There is an API call to interpolate these "strokes" with a polygon of specified accuracy.

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/