I understand overloading but what does someone mean by "Overload the increaseRed method with an increaseRed method that accepts a number that specifies an increase factor"?
The increasedRed() is as follows:
public void increaseRed()
{
Pixel[] pixelArray = this.getPixels();
Pixel pixel = null;
int value = 0;
int index = 0;
// loop through all the pixels
while (index < pixelArray.length)
{
// get the current pixel
pixel = pixelArray[index];
// get the value
value = pixel.getRed();
// change the value to 1.3 times what it was
value = (int) (value * 1.3);
// set the red value to 1.3 times what it was
pixel.setRed(value);
// increment the index
index++;
}
}