Hi,
can anyone recommend a module for me to use which will allow me to itterate through each pixel of an image and modify the R,G,B data for each pixel?
I really don't know how to do this but it is an important part of my program which I have almost finished except for this last bit.
I have an image saved as image.jpg (i can change this to bmp if necessary) and I want to open this in my perl program, and make the blue and green values of each pixel equal to the red value Xor'd with 255. I then want to be able to get the x,y co-ordinates for the pixel with the highest amount of red in it.
I am using windows/activeperl. Any help would be great, thanks!
can anyone recommend a module for me to use which will allow me to itterate through each pixel of an image and modify the R,G,B data for each pixel?
I really don't know how to do this but it is an important part of my program which I have almost finished except for this last bit.
I have an image saved as image.jpg (i can change this to bmp if necessary) and I want to open this in my perl program, and make the blue and green values of each pixel equal to the red value Xor'd with 255. I then want to be able to get the x,y co-ordinates for the pixel with the highest amount of red in it.
I am using windows/activeperl. Any help would be great, thanks!