Package org.apache.pdfbox.debugger.ui
Class ImageUtil
- java.lang.Object
-
- org.apache.pdfbox.debugger.ui.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°.
-
-
-
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.
- Throws:
java.lang.IllegalArgumentException
- if the angle isn't a multiple of 90°.
-
-