Turning On/Off pixels in a pic/texture

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.

Hope that made sense, thanks,

V

With shaders.

see SetPixel32() and Apply()

1 Like

This was recently discussed and you can find all you need in this thread.

1 Like

thank you!