public void decreaseRed() { Pixel[]pixelArray=this.getPixels(); int value=0; //loop through all the pixels in the array for (Pixel pixelObj:pixelArray) { //get the red value value=pixelObj.getRed(); //decrease the red value by 50% (1/2) value=value/2; //set the red value of the current pixel to the new value pixelObj.setRed(value); } } public void increaseRed() { Pixel[]pixelArray=this.getPixels(); int value=0; //loop through all the pixels in the array for (Pixel pixelObj:pixelArray) { //get the red value value=pixelObj.getRed(); //increase the red value by 50% (1.5) value=value*2; //set the red value of the current pixel to the new value pixelObj.setRed(value); } } public void clearBlue() { Pixel[]pixelArray=this.getPixels(); Pixel pixelObj=null; int index=0; //loop through all the pixels in the array while (index