Re: [gtkmm] Drawing primitives on top of an image.



Christer Palm wrote:
Paul Davis wrote:


also, you should only *ever* put drawing functions (for any kind of
visible thing: a line, an image, text, etc) in an expose event
handler.


Or, alternatively, draw into an offscreen pixmap and let the expose event handler update from that. Depending on what the original poster is up to, this might be what he's looking for.

Indeed. Not to nitpick, but note that gtk/gdk already implements by default double-buffering for exposed areas, so this is only an issue if drawing takes more time than copying (see f.e. fractal imaging).

Anyway, my &eur;0.02 :-)
Tassos




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