View Single Post
Old 11-02-2012, 07:05 PM   PM User | #1
Wevcss
New to the CF scene

 
Join Date: Sep 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Wevcss is an unknown quantity at this point
Calling this method

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.
Wevcss is offline   Reply With Quote