finalizing the Iterator API

Cyrille Berger cyb at lepi.org
Fri Jul 9 15:01:38 CEST 2004


> for it in selection
> 	Pixel color = red;
> 	if (it.y() % 10 == 0 ||
> 	    it.x() % 20 == 0)
> 		color = black;
>
> 	*it = color;
>
except that % is a very slow operation (I know it for trying to use it a lot 
in iterators).

-- 
--- Cyrille Berger ---


More information about the kimageshop mailing list