> How to get GdkDrawable from GdkPixbuf?
Here's one way:
1. Create an empty pixmap:
GdkPixmap *pix_work;
pix_work = gdk_pixmap_new(widget->window, xsize, ysize, -1);
2. Draw your pixbuf (which I assume you have already created) onto the pixmap:
gdk_draw_pixbuf(pix_work, NULL, pixbuf, 0, 0, 0,
> GdkPixmap *pixmap;
> GdkPixbuf *pixbuf;
> GdkGC *gc;
> pixbuf =
> pixmap = gdk_pixbuf_new(NULL,
> gdk_pixbuf_get_width(pixbuf),
> gdk_pixbuf_get_height(pixbuf),
>
> 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
I'd like to:
- Create new image
- Insert into it some text, lines ect.
- Insert into it some pictures from disk
- Save it on disk
I know some of glib/gtk+ and I'd like to use similar library.
How to get GdkDrawable from GdkPixbuf?
I try to shearch it in doc., but I didn't find it?
Best regards.
I'd like to:
- Create new image
- Insert into it some text, lines ect.
- Insert into it some pictures from disk
- Save it on disk
I know some of glib/gtk+ and I'd like to use similar library.
How to get GdkDrawable from GdkPixbuf?
I try to shearch it in doc., but I didn't find it?
Best regards
_