Top Constructors Methods
org.apache.pdfbox.debugger.ui

public final Class ImageUtil

extends Object
Class Inheritance
Imports
java.awt.Graphics2D, java.awt.image.BufferedImage

Author
Tilman Hausherr Utility class for images.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static BufferedImage

Returns:

The rotated image.
getRotatedImage
(BufferedImage
The image to rotate.
image
,
int
The rotation in degrees.
rotation
)

Return an image rotated by a multiple of 90°.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ImageUtilback to summary
private ImageUtil()

Method Detail

getRotatedImageback to summary
public static BufferedImage getRotatedImage(BufferedImage image, int rotation)

Return an image rotated by a multiple of 90°.

Parameters
image:BufferedImage

The image to rotate.

rotation:int

The rotation in degrees.

Returns:BufferedImage

The rotated image.

Exceptions
IllegalArgumentException:
if the angle isn't a multiple of 90°.