title: how to rotate a bufferd-image in java?
body: <p>I am having a bufferd-image i.e:</p>
  
  <pre><code>  BufferedImage buffer = ImageIO.read(new File(file));
  </code></pre>
  
  <p>now i want to rotate it.. So how i can do it??</p>
  
  <p>Previously i have used the image format i.e:</p>
  
  <pre><code>Image image = ImageIO.read(new File(file));
  </code></pre>
  
  <p>and could easily rotate a image using:</p>
  
  <pre><code>   AffineTransform at = new AffineTransform();
     at.rotate(0.5 * angle * Math.PI, width/2, height/2);
  </code></pre>
  
  <p>But i dont noe how to do it with the bufferd-image?? Can you help me??</p>