Re: Speed of Gdk-Pixbuf Vs. GdkRGB



Steffen, John,

> If you need to render the pixbuf often and don't need blending, you
> should consider to draw it to an offscreen pixmap (a GdkPixmap) and
> use that to blit the image to the screen.

I'm a little confused now!   In my original posting I mentioned that I usually
"define a backing pixmap in a 'configure' callback, draw the graphical content into 
the pixmap, then copy it to the drawing-area in one go in an 'expose' callback".
I guess this is what you are recommending I do.

John Cupitt mentioned in a previous posting in this thread that "Gtk now does this 
for you" which suggests to me that if I'm using my own backing pixmap and Gtk is 
using *its* own backing pixmap, there's some redundancy...!  So what's the answer?

Sorry to labour the point, I'd just like to be sure I understand what's going on. :)

Regards,

-- 
David J. Singer
doc deadvirgins org uk
"Time flies like an arrow, fruit flies like a banana"




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