Re: [Gimp-developer] Sample points



I wondered about that at the time, but the Path technique has several advantages over the sample points:

 * you are not limited to 4 points
 * you can keep points and target layer in synch using the links
 * you have sub-pixel accuracy


On 08/03/15 14:54, Bill Skaggs wrote:
It would be straightforward to add that functionality, though.  All that
would be needed is to add a function gimp_image_get_sample_points_invoker()
to app/pdb/image-cmds.c, which would call gimp_image_get_sample_points(),
and then glue it to a procedure called gimp-image-get-sample-points.  That
would be a good exercise for a developer who wants to gain familiarity with
the pdb.  (It would also be necessary to add documentation, of course.)

Bill

On Sun, Mar 8, 2015 at 6:56 AM, Ofnuts <ofnuts gmx com> wrote:

On 08/03/15 09:42, Kevin Payne wrote:

Is is possible to access the position of the sample points from within a
script? I can't find any reference to them in the Procedure browser.


No way AFAIK. Scripts that require image coordinates usually ask the user
to draw a path and use the path anchor coordinates.

_



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]