Window/widget contents -> pixmap?



Hi

I want to capture a widget's display into a pixmap. This is for something
like making a png/gif button on a web page look like a GTK button.

Can I create a widget and have it draw on a pixmap? I.e. setting
widget->window to be a GdkPixmap. Or is there a way to dump the contents
of a GdkDrawable into a GdkPixmap?

Any hints appreciated!

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]