Dear Gimp developers.

Is it possible to re-use Gimp-functionality in own C-code? I have already a 
image processing pipeline and want to just apply to my image bitmap 
GIMP_TYPE_BRIGHTNESS_CONTRAST_CONFIG in ope of pipline's stages.


Is it possible to convert bitmap to drawable and put in into this code (as in 
?gimp/app/pdb/color-cmds.c):


          GObject *config = g_object_new (GIMP_TYPE_BRIGHTNESS_CONTRAST_CONFIG,
                                          "brightness", brightness / 127.0,
                                          "contrast",   contrast   / 127.0,
                                          NULL);

          gimp_drawable_apply_operation_by_name (drawable, progress,
                                                 C_("undo-type", 
"Brightness-Contrast"),
                                                 "gimp:brightness-contrast",
                                                 config);


Is it any examples of standalone apps, which are using Gimp functionality?


Regards,


Oleksii
_______________________________________________
gimp-developer-list mailing list
List address:    gimp-developer-list@gnome.org
List membership: https://mail.gnome.org/mailman/listinfo/gimp-developer-list
List archives:   https://mail.gnome.org/archives/gimp-developer-list

Reply via email to