Re: How Does One Call An Existing PDB Procedure From A C Plug-in?

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

 



> stormy@xxxxxxxxxxxxxxxxx (stormy@xxxxxxxxxxxxxxxxx) wrote:
>> How do I access existing PDB procedures from a C plug-in? I'm very
>> familiar with how this is done in Scheme & Python. I'm confused on how
>> this is accomplished in C.
>
> Look for "gimp_run_procedure".
>
> One example is in file-ico.c:
>
>     return_vals =
>       gimp_run_procedure ("plug-in-threshold-alpha", &n_return_vals,
>                           GIMP_PDB_INT32, GIMP_RUN_NONINTERACTIVE,
>                           GIMP_PDB_IMAGE, tmp_image,
>                           GIMP_PDB_DRAWABLE, tmp_layer,
>                           GIMP_PDB_INT32, ICO_ALPHA_THRESHOLD,
>                           GIMP_PDB_END);
>     gimp_destroy_params (return_vals, n_return_vals);
>
> I hope this helps.
>
> Bye,
>         Simon
>
> --
>               simon@xxxxxxxx              http://simon.budig.de/
> _______________________________________________

Thank you. That is very helpful.

~Stormy

_______________________________________________
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