Re: [gdk] How use gdk-pixbuf...

2005-07-08 Thread Christopher Anderson
> 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,

Re: Re: [gdk] How use gdk-pixbuf...

2005-07-08 Thread Michal Porzuczek
> GdkPixmap *pixmap; > GdkPixbuf *pixbuf; > GdkGC *gc; > pixbuf = > pixmap = gdk_pixbuf_new(NULL, > gdk_pixbuf_get_width(pixbuf), > gdk_pixbuf_get_height(pixbuf), >

Re: [gdk] How use gdk-pixbuf...

2005-07-07 Thread Michal Porzuczek
> 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

[gdk] How use gdk-pixbuf...

2005-07-07 Thread uzytkownik22
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.

[gdk] How use gdk-pixbuf...

2005-07-07 Thread uzytkownik2
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 _