> Pixels - just ones and zeroes? Pack them as integers and apply the > right shift operator: > i>>=1
But you have to remember to overflow right hand ones into the next integer if there are more than 32 bits... Although Python long integers migfht work, dunno what the speed of shifting a long integer is in Python.. hmmm must try it! Alan G. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor