> 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 --- _______________________________________________ kimageshop mailing list kimageshop@kde.org https://mail.kde.org/mailman/listinfo/kimageshop