Autolayer merge done

Sven Langkamp longamp at reallygood.de
Sun Jan 16 13:43:23 CET 2005


On Sunday 16 January 2005 09:21, Casper Boemann wrote:
> > Thanks for the hint. Using the image dimensions works, but now I'm having
> > troubles with KisRectIterator. I have fixed a problem with the operator,
>
> but
>
> > I can't get the iterator working on the specified rect. It always stops
> > in the middle of the first tile. So for now I'm using KisHLineIterator
> > which works perfect.
>
> Yes KisRectIterator is broken. I never fixed it because I realised that the
> usage is quite limited so I implemented KisHLineIterator instead.
>
> The usage problem with KisRectIterator is that you dont know which pixel
> you have so unless its an one pixel function like change color it's no use.
> You could call x() and y() of the iterator, but that feels quite slow and
> clumpsy.
I don't see the reason why it should be so slow to get x and y from the 
iterator.

If you use a KisHLineIterator you have to get a new Iterator for each line. 
The KisHLineIterator also does 64 times more tile switches than the 
KisRectIterator.


More information about the kimageshop mailing list