Re: Draw a GtkWidget to a Pixmap?



On Sat, 09 Oct 2004 16:01:17 +0530
Gaurav Jain <gaurav adobe com> wrote:

Hi,
 
Is there a way to draw a GtkWidget not to a Window, but to an offline
Pixmap?
 
One way is to take a snapshot of the screen and then do XCreatePixmap
and XCopyArea, but in my case, the widget is NOT shown on the screen at
all.
 
Any inputs would be highly helpful.

Hi...

On a GnomeCanvas (which does not have to be on-screen), you can draw
widgets. From there on it should be possible to generate the pixmap.
Never tried to do it, but it seems feasable.

John



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