Package org.apache.pdfbox.debugger.ui
Class ImageUtil
java.lang.Object
org.apache.pdfbox.debugger.ui.ImageUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImage
getRotatedImage
(BufferedImage image, int rotation) Return an image rotated by a multiple of 90°.
-
Constructor Details
-
ImageUtil
private ImageUtil()
-
-
Method Details
-
getRotatedImage
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°.
-