Class ImageUtil


  • public final class ImageUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ImageUtil()  
    • 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
    • Constructor Detail

      • ImageUtil

        private ImageUtil()
    • 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.