[Gtk-sharp-list] Re: Drawing pixbufs to screen FAST..

Gabriel Ebner ge@gabrielebner.at
Fri, 31 Dec 2004 08:40:34 +0100


Eto <eto@shaw.ca> writes:

> My question is this:  what is the best way in GTK# to draw a lot of small 
> images to the screen real, real FAST?

The fastest way I've found is to create server-side pixmaps:

 Pixbuf pb = ...;
 Pixmap mask, pm;
 pb.RenderPixmapAndMask(out pm, out mask, 128);
 pb.Dispose();
 mask.Dispose();

       Gabriel.