[Gimp-developer] Using GIMP from my own program
Martin Nordholts
enselic at gmail.com
Sun Dec 14 07:50:25 PST 2008
Pablo Yaggi wrote:
>
> Hi, is it possible to use gimp from a C program ?
>
> I want to open an image use some plugin on it and
>
> save it. I know perl does something like that, but
>
> I couldn't find info about that, could somebody
>
> point me in a good direction ?
>
> Bests,
>
> Pablo
>
Hi!
The different language wrappers for GIMP such as Perl, Python or Scheme
are themselves basically just wrappers for the PDB, Procedural DataBase.
If you want to call a PDB procedure from GIMP plug-in written in C you
would use gimp_run_procedure() [1] or gimp_run_procedure2(). (These are
the functions the language wrappers themselves use (the language
wrappers are themselves plug-ins)).
BR,
Martin
[1]
http://developer.gimp.org/api/2.0/libgimp/libgimp-gimp.html#gimp-run-procedure
More information about the Gimp-developer
mailing list