[ATTACH=CONFIG]27j.jpg49[/ATTACH]Hello,
I am wondering if anyone can help me, I'm having the hardest time getting a program to compile. I'm beginning to think I've downloaded the incorrect version of turtle graphics. This symbol looks foreign and I'm unsure how to find a solution. I have fixed some of the errors since this last picture but I will write out my code. The program takes a photo and converts to gray scale then to sepia
import images.APImages;
import images.Pixel;
import java.util.Scanner;
public class sepia{
public static void main(String [] args){
Scanner reader = new Scanner(System.in);
System.out.print("Enter image file name to continue: ");
String fileName = reader.nextLine();
APImages theOriginal = new APImages(fileName);
theOriginal.draw();
int width = theOriginal.getWidth();
int height = theOriginal/getHeight();
APImages numba2 = theOriginal.clone();
numba2.draw();
Pixel oldPixel = theOriginal.getPixel(x, y);
Pixel rightPixel = theOriginal.getPixel(x, y - 1);
Pixel bottomPixel = theOriginal(x - 1, y);
int red = numba2.getRed(average);
int green = numba2.getGreen(average);
int blue = numba2.getBlue(average);
int average = ( red + green + blue)/3;
for(int y = 0; y < height; y++)
for(int x = 1; x < width; x++){
if(red < 63){
red = (int)(red * 1.1);
blue = (int)(blue * 0.9);
}
else if(red < 192){
red = (int)(red * 1.15);
blue = (int)(blue * 0.85);
}
else{
red = Math.min(int(red * 1.08), 255);
blue = (int)(blue * 0.93);
}
}
}
//end main
So any feedback any criticism is better then none whatsoever. I wouldn't normally ask but I have had very little success finding little to no java tutorials usually just python and c++.