Super noobie question but I don't have a clue..
Code:
public void changeWhole(double amount)
{
Pixel[] pixelArray = this.getPixels();
Pixel pixel = null;
int value = 0;
int i = 0;
while( i < pixelArray.length)
{
pixel = pixelArray[i];
value = pixel.getBlue();
pixel.setBlue((int) (value * amount));
i++;
}
}
public static void main(String[] args)
{
String fileName = FileChooser.pickAFile();
Picture pictObj = new Picture(fileName);
pictObj.explore();
}
I dont know how to call the changeWhole method in the main method without getting any errors.