Re: [Gimp-developer] trouble running autocrop from plug-in
Cindy Huyser ([EMAIL PROTECTED]) wrote: > Simon Budig wrote: > > >Randomly guessing syntaxes most probably won't help you much. :-) > > Not really a random guess, but using a _very_old documented syntax: > http://www.goof.com/pcg/marc/pdb/plug_in_autocrop.html This describes the Perl interface - not the C bindings... (ok, this is not really obvious) Bye, Simon -- [EMAIL PROTECTED] http://www.home.unix-ag.org/simon/ ___ Gimp-developer mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
Re: [Gimp-developer] trouble running autocrop from plug-in
Simon Budig wrote: > Randomly guessing syntaxes most probably won't help you much. :-) > Not really a random guess, but using a _very_old documented syntax: http://www.goof.com/pcg/marc/pdb/plug_in_autocrop.html > Libgimp has only wrappers for most of the gimp internal functions. > For Plugins you need to use the gimp_run_procedure call directly, > in your case something like the following (untested!): > > params = gimp_run_procedure ("plug_in_autocrop", >&retvals, >GIMP_PDB_INT32, 1, >GIMP_PDB_IMAGE, image_id, >GIMP_PDB_DRAWABLE, drawable_id, >GIMP_PDB_END); > > I hope this helps. > > Bye, > Simon Thanks, Cindy ___ Gimp-developer mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer
Re: [Gimp-developer] trouble running autocrop from plug-in
Cindy Huyser ([EMAIL PROTECTED]) wrote: > I've been attempting to call the autocrop plug-in from within a C > plug-in, but to no avail. My syntax is: > > GimpDrawable *drawable; > ... > plug_in_autocrop(image, *drawable); [...] > drawable->autocrop(); Randomly guessing syntaxes most probably won't help you much. :-) Libgimp has only wrappers for most of the gimp internal functions. For Plugins you need to use the gimp_run_procedure call directly, in your case something like the following (untested!): params = gimp_run_procedure ("plug_in_autocrop", &retvals, GIMP_PDB_INT32, 1, GIMP_PDB_IMAGE, image_id, GIMP_PDB_DRAWABLE, drawable_id, GIMP_PDB_END); I hope this helps. Bye, Simon -- [EMAIL PROTECTED] http://www.home.unix-ag.org/simon/ ___ Gimp-developer mailing list [EMAIL PROTECTED] http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer