KisPainter::paintPolygon used in paintops

Sven Langkamp sven.langkamp at gmail.com
Tue Sep 29 15:29:04 CEST 2009


On Tue, Sep 29, 2009 at 1:45 PM, Boudewijn Rempt <boud at valdyas.org> wrote:

> On Tuesday 29 September 2009, LukasT.dev at gmail.com wrote:
>
> ...
>
> I got a valgrind log for you now --
> http://www.valdyas.org/~boud/splatter.callgrind<http://www.valdyas.org/%7Eboud/splatter.callgrind>.
> This shows that the biggests
> issue is indeed exactBounds(), but you might be able to find other issues.
>

Some other ideas:

I'm not sure if QImage::pixel suffers from the same slowness as setPixel,
but it might be worth to try using QImage scanline instead. Same with
QPainter::fillRect vs QImage::fill.

Adapt the size of the QImage to the path. It isn't needed to create a
256x256 QImage if you are just painting a 10 pixel circle.

Combine several paths into one QPainterPath. No idea, if that works with the
spray tool but it would probably help a lot if you could group the circles
etc. in in qpainterpath before using fillPainterPath.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kimageshop/attachments/20090929/ac814ac6/attachment.htm 


More information about the kimageshop mailing list