Re: Sample points

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

 



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@xxxxxxx> 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.

_

_______________________________________________
gimp-developer-list mailing list
List address:    gimp-developer-list@xxxxxxxxx
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list




[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux