> I know some of glib/gtk+ and I'd like to use similar library.
> How to get GdkDrawable from GdkPixbuf?

Use gdk_draw_pixbuf () to convert from GdkPixbuf to GdkDrawable.

 > - Create new image
> - Insert into it some text, lines ect.
> - Insert into it some pictures from disk
> - Save it on disk

create a drawing area and a gdkdrawable or gdkpixbuf or whatever you
want to use.

Then use the gdk_draw commands to draw lines/text etc.

you can then use gdk_draw_drawable to add the additional pictures you
want in what regions of the drawable

you can then use gdk_pixbuf_get_from_drawable () and save the pixbuf
again or you can just convert it to data automatically using
gdk_drawable_set_data and save that.

I hope that helps,

Michal
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to