Class ImageUtil


  • public final class ImageUtil
    extends java.lang.Object
    Author:
    Tilman Hausherr Utility class for images.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.awt.image.BufferedImage getRotatedImage​(java.awt.image.BufferedImage image, int rotation)
      Return an image rotated by a multiple of 90°.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getRotatedImage

        public static java.awt.image.BufferedImage getRotatedImage​(java.awt.image.BufferedImage image,
                                                                   int rotation)
        Return an image rotated by a multiple of 90°.
        Parameters:
        image - The image to rotate.
        rotation - The rotation in degrees.
        Returns:
        The rotated image.