Anyone ever used the PIL (Python Image Library)? If you have, is there anyway to convert a single pixel at a time in a bmp file? I'm trying to invert a black and white image to white and black. So:
import PIL
image = Image open(filename)
pixels = list(image.getdata())
#insert someway to invert the pixels
image.putdata(pixels)
image.save('new.bmp')
I think I also have to use a for pixel in pixels loop.
I know there are easier ways with the in-built functions but I have to do it this way.