[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kimageshop
Subject:    Re: Redrawing the picture on window expose
From:       Adrian Page <adrian () pagenet ! plus ! com>
Date:       2004-09-03 21:22:51
Message-ID: 200409032222.51587.adrian () pagenet ! plus ! com
[Download RAW message or body]

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.

Adrian
_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic