Redrawing the picture on window expose
adrian at pagenet.plus.com
Fri Sep 3 23:22:51 CEST 2004
On Friday 03 September 2004 8:42 pm, Boudewijn Rempt wrote:
> I just noticed that when a Krita window is obscured, and then exposed
> again, we go through the complete compose & render routine again. How hard
> would it be to cache the QImage and restore that on window expose?
It shouldn't be too hard. It's probably best to maintain a canvas-sized
QPixmap which is updated on invalidating a rectangle, then we use that to
draw the contents in paint events. I'll have a look at it.
More information about the kimageshop