in reply to Clearing image Bits

Both Image::Magick and Imager have methods to get/set specific pixels in an image. There are also methos for drawing primatives (e.g. set a whole rectangle to black).