title: Retrieve new width and height of BufferedImage bounds after a AffineTransform.rotate()
body: <p>I'm working on a type of image editor which includes snapping to other elements as a feature. The snapping works by using the image width and height.</p>
  
  <p>However, after an AffineTransform.rotate() the image width and height are no longer the actual bounds of the rendered image and thus the snapping fails.</p>
  
  <p>What's the best way of determining the width and height of the rectangular area that encompasses the rotated image?</p>