Re: [gtk-list] Retreiving image from GdkPixmap



Martijn Graswinckel <martijn@jjgraswinckel.demon.nl> writes:
> Is it possible to retrieve the contents of a 
> GdkPixmap so that it can be saved as an image. 
>  
> I've looked in the gdk source for a while but
> can't seem to figure it out.
> 
> If somebody has some sample code well, that would
> be great.
> 

Look at gdk_imlib_create_image_from_drawable() or
gdk_pixbuf_get_from_drawable(). (In Imlib and gdk-pixbuf
respectively).

Havoc



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