| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static BufferedImage | Returns: A instance ofBufferedImage with a type compatible with the graphics card.The width of the image to be created width, final int The height of the image to be created height)Creates a |
| public static BufferedImage | Returns: A thumbnail with the requested width or the original picture if thumbWidth = image.getWidth()The original image to sample down image, final int The width of the thumbnail to be created thumbWidth)Creates a thumbnail from an image. |
| public static void |
| ImageUtil | back to summary |
|---|---|
| private ImageUtil() | |
| createCompatibleImage | back to summary |
|---|---|
| public static BufferedImage createCompatibleImage(final int width, final int height) Creates a
| |
| createThumbnail | back to summary |
|---|---|
| public static BufferedImage createThumbnail(final BufferedImage image, final int thumbWidth) Creates a thumbnail from an image. A thumbnail is a scaled down version of the original picture.
This method will retain the width to height ratio of the original picture and return a new
instance of
| |
| flipImageVertically | back to summary |
|---|---|
| public static void flipImageVertically(final BufferedImage image) Flips the supplied BufferedImage vertically. This is often a necessary conversion step to display a Java2D image correctly with OpenGL and vice versa. | |