Re: [gtk-list] Re: Window/widget contents -> pixmap?



On Thu, 13 Jan 2000, Erik Mouw wrote:

> On Thu, 13 Jan 2000 11:48:13 -0800 (PST), Conrad Steenberg wrote:

> > widget->window to be a GdkPixmap. Or is there a way to dump the contents
> > of a GdkDrawable into a GdkPixmap?
> > 
> > Any hints appreciated!
> 
> What about creating a regular GTK+ program and capture it with XV?
> 
> 
> Erik

Well, I'd really like it to be more automated than that.

To answer my own question, though: it seems imlib can do this with 

GdkImlibImage *gdk_imlib_create_image_from_drawable

Thanks for your reply!

Conrad

*-----------------------------------------*                                  
| Conrad Steenberg                        |                                  
| Caltech, Mail Code 220-47               |                                  
| Pasadena, CA, 91125                     |                                  
| e-mail: conrad@srl.caltech.edu          |                                  
| Tel: (626) 395-2964 Fax: (626) 449-8676 |                                  
*-----------------------------------------*                                  

"Source code is the blueprint for software, like a set of spells that humans
can read and use to control machines. Access to source code is power."
Rachel Chalmers





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