Color Inversion

Color Inversion: With a black and white image, color inversion doesn't really do much and so you should go out and find a more colorful image to manipulate before doing this assignment. Below is the basic code which is used for color inversion. Since you will be using an image you find out there in internetland, you will have to figure out its width and height in order to get all the PixelGrabber code to work right.
for(int x = 0; x< w * h; x++){ int r = (pixel[x] & 0x00ff0000)>>16; int g = (pixel[x] & 0x0000ff00)>>8; int b = (pixel[x] & 0x000000ff); r=255-r; g=255-g; b=255-b; pixel[x]= (255<<24) | (r<<16) | (g<<8) | b; }