But I don't want to call it from a gimp plugin, I want to call it from inside a simple c program, is it possible ? I mean using libgimp outside Gimp, just linking to it, if it so I suppose I need to make some initialization and I should need to create some type of data object and so, any example ? Best Regards Pablo On Sunday 14 December 2008 13:50:25 Martin Nordholts wrote: > 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-proced >ure |
_______________________________________________ Gimp-developer mailing list Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer