[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-kimageshop
Subject: Re: QRegion
From: Boudewijn Rempt <boud () valdyas ! org>
Date: 2007-06-06 9:11:40
Message-ID: 200706061111.42545.boud () valdyas ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Wednesday 06 June 2007, Boudewijn Rempt wrote:
> On Monday 04 June 2007, Boudewijn Rempt wrote:
> > It uses internally some X11 stuff that's meant for optimizing screen
> > updates. Yes, having a class that collects rects, computes the smallest
> > set of the biggests possible rects is an interesting problem.
>
> I did think a bit on a KisRegion class and I fairly sure that I cannot make
> it work.
Apparently it's really a hard problem: Pippin doesn't have a solution either.
I asked Zack Rusin, and he suggested to use QPainterPath and the Qt4
tesselator. In Qt 4.4, we'll be able to add and subtract rects from a
QPainterPath -- and we'll have access to the tesselator. That should make it
possible to replace QRegion. Whether it'll be faster I don't know, but given
that it's Zack working on the thing I guess it will.
Of course, we could already try to use QPainterPath together with
toFillPolygons and then QPolygonF::boundingRect() -- but that doesn't help
with the layer dirty region marking.
--
Boudewijn Rempt
http://www.valdyas.org/fading/index.cgi
["signature.asc" (application/pgp-signature)]
_______________________________________________
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