dimula73 at gmail.com
Thu Dec 10 23:29:15 CET 2009
On Fri, Dec 11, 2009 at 1:17 AM, LukasT.dev at gmail.com
<lukast.dev at gmail.com>wrote:
> On Thursday 10 December 2009 11:05:57 Dmitry Kazakov wrote:
> > 1) Is there any link to read about INDEPENDENT_CANVAS?
> I give you the idea of what I have done. I added private member QImage
> to KisQPainterCanvas and when the paint event is called with changed rect,
> rect is painted to the QImage and then the rect is updated with other
> which is widget's one.
> > 2) Well, is there any way to move painting decorations and overlay
> > of paint event? We could prepare your QImage outside paint event, and
> > copy it to the widget inside paintEvent? Is this possible?
> So we would not store one global QImage but allocate small ones per paint-
> overlay action?
Hmm.. no. One global QImage. It is updated on the change of decorations.
Inside paintEvent we just call gc.drawImage(qimage) and no updates. Is it
possible? And will help to improve perfomance?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the kimageshop