I have this small image (MyImage.gif), and I need to load that image in memory and perform some changes by accessing its pixels (for example I need to change all red pixels to blue). So far, I can get the Image like this:
img = getToolkit().getImage("D:\\DownLoads\\images\\MyImage.gif");
System.out.println("Exception was thrown in action performed : "+ex.toString());
But, it seems that I can do nothing with my image other than display it. I need to be able to look into its pixels analyze them and change them if I want to.
Any help with this??
Thanks a lot in advance!