Ciao a tutti , per posizionare un immagine in una Jlabel ho utilizzato questo codice :
public ImageIcon angolo_destro_basso(Image src){
int w = lbl_alto_s.getWidth();
int h = lbl_alto_s.getHeight();
int type = BufferedImage.TYPE_INT_RGB;
BufferedImage dst = new BufferedImage(w, h, type);
Graphics2D g2 = dst.createGraphics();
g2.drawImage(src, 0, 0, w, h, this);
g2.dispose();
return new ImageIcon(dst);
}
ora come faccio a ruotarla?
Mi spiegate come funziona il metodoto rotate o mi mandate qualche esempio per il mio codice ? Grazie

Rispondi quotando