Re: getting an image from gtkdrawingarea



Hi all,

I'm still stuck on this issue.  The previous post was my first to the list, so if I need to give extra info or add anything to the post I'd be happy to do so.

Thanks


On 9/22/06, Michael L. Gualtieri <mikeg cs pitt edu> wrote:
I'm writing an app that has several cairo animations inside gtkdrawingareas.  Unfortunately, everytime the window is covered and uncovered the expose events show the ugly grey background of the drawing area instead of my nice cairo surface.

I have noticed that GtkImages expose much quicker than a GtkDrawingArea.  Is there a way to convert the contents of a gtkdrawingarea to a GtkImage or other type that is easily drawable on the screen?

My idea is that I can draw an image of the drawing area while it is static, and then when I need to animate it, I will replace it back with the drawing area.

Thanks!




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