KisPainter::paintPolygon used in paintops

Boudewijn Rempt boud at valdyas.org
Tue Sep 29 15:57:56 CEST 2009


On Tuesday 29 September 2009, Sven Langkamp wrote:
>
> 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.

When doing filters for Hyves, I found that using scanline made a huge 
difference.
 
> 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.
> 


-- 
Boudewijn Rempt | http://www.valdyas.org


More information about the kimageshop mailing list