ciao allora io ho questa parte di codice per ottenere da un jpanel un immagine 660x660
codice:
public void creaImm(String nome){
BufferedImage image = new BufferedImage(this.getWidth(), this.getHeight(), BufferedImage.TYPE_INT_RGB);
this.printAll(image.getGraphics());
try { ImageIO.write(image, "jpg", new File("./"+nome+".jpg"));
}
catch (IOException e) { e.printStackTrace(); }
}
come faccio a fare quello che hai detto tu?
Devo creare una Graphics2D cosi?
codice:
Graphics2D img2D=image.getGraphics()
e poi come li setto gli assi?