public BufferedImage rotimage(BufferedImage rotImage, int alpha){ Graphics2D g2 = (Graphics2D)rotImage.getGraphics(); g2.rotate(Math.toRadians(alpha)); g2.drawImage(rotImage, 0, 0, null); return rotImage; }
Graphics2D g2 = rotImage.createGraphics(); ... g2.dispose();
Graphics g = rotImage.getGraphics(); g.drawString("Text",10,10);