Class ImageUtil

java.lang.Object
org.apache.pdfbox.debugger.ui.ImageUtil

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

    • getRotatedImage

      public static BufferedImage getRotatedImage(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.
      Throws:
      IllegalArgumentException - if the angle isn't a multiple of 90°.