From kde-kimageshop Tue Sep 29 13:57:56 2009 From: Boudewijn Rempt Date: Tue, 29 Sep 2009 13:57:56 +0000 To: kde-kimageshop Subject: Re: KisPainter::paintPolygon used in paintops Message-Id: <200909291557.56800.boud () valdyas ! org> X-MARC-Message: https://marc.info/?l=kde-kimageshop&m=125423272203815 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 _______________________________________________ kimageshop mailing list kimageshop@kde.org https://mail.kde.org/mailman/listinfo/kimageshop