I am trying to rotate image. I am using this Java code:
BufferedImage oldImage = ImageIO.read(new FileInputStream(\"C:\\\\workspace\\\\test\\\\src\\\\10.JPG\
You can write like this it will be work.
BufferedImage newImage = new BufferedImage(oldImage.getWidth(), oldImage.getHeight(), oldImage.getType());
I think the place for width and height is wrong in your code.
width
height