Is there a way to scan pixels in a picture file (jpg, png), then change the color of the pixel in the picture, not necessarily on the final saved picture file.
So in other words, say I have a .jpg pic with a red square and a green ball, I would like to scan that picture pixel by pixel and find all pixels that are red and change them to a new color.