iterator offset problem
Bart Coppens
kde at bartcoppens.be
Thu Mar 17 22:17:26 CET 2005
On Thursday 17 March 2005 15:14, Casper Boemann wrote:
> I just realised a place where the proposed layer offset iterator coods
> break down.
> When you make and iterator you do it with image coords
> ..but when you query the iterator's position you get device coords
> So the iterator needs to be told the position which breaks encapsulation
Well, in that patch, the pixel iterators just save a pointer to the paint
device they're constructed with. When the iterator returns a position, it
queries the paint device for the offset, so it can return the position in
image coords.
Or do you mean something else?
Bart Coppens
More information about the kimageshop
mailing list