Re: [Gimp-developer] Which package contains source code for the Scissor Selection tool



Hi Minh-Long Hoàng,

welcome aboard.

On Wed, 23 Mar 2016 22:34:49 +0000 (UTC)
Minh-Long Hoàng <mdhoang2003 yahoo com> wrote:

 I am trying to write a program that allows the user to use the mouse to
select an object of a photo by clicking points around the object. My code
should create a patch around the object and then copy a the enclosed region.
This functionality is exactly how the Scissor Selection tool of GIMP works. I
tried to download GIMP source code to see how this feature was implemented by
GIMP developers. However, there are so many packages and I could not find the
source files that has the code for the Scissor Selection tool (LiveWire
algorithm). 

An ack query appears to yield some results:

gimp-2.8.14$ ack -g scissor

app/tools/gimpiscissorstool.c
app/tools/gimpiscissorsoptions.h
app/tools/.deps/gimpiscissorstool.Po
app/tools/.deps/gimpiscissorsoptions.Po
app/tools/gimpiscissorstool.h
app/tools/gimpiscissorsoptions.c

See ack ( http://beyondgrep.com/ ). You may also try a full text search (ack -g
only searches inside the filenames).

Note that GIMP's source code is licensed under version 2 or version 3 of the
https://en.wikipedia.org/wiki/GNU_General_Public_License which, while being
an open-source licence, imposes some restrictions on what you can and cannot do
with the code.

Regards,

        Shlomi Fish

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
UNIX Fortune Cookies - http://www.shlomifish.org/humour/fortunes/

Python - There’s only one way to do it. The one true way of doing it. And then
there are others.
    — http://www.shlomifish.org/humour/ways_to_do_it.html

Please reply to list if it's a mailing list post - http://shlom.in/reply .


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