public class ImageUtil extends Object
|Modifier and Type||Method and Description|
Creates a thumbnail from an image.
Flips the supplied BufferedImage vertically.
public static void flipImageVertically(BufferedImage image)
public static BufferedImage createCompatibleImage(int width, int height)
BufferedImagewith a pixel format compatible with the graphics environment. The returned image can thus benefit from hardware accelerated operations in Java2D API.
width- The width of the image to be created
height- The height of the image to be created
BufferedImagewith a type compatible with the graphics card.
public static BufferedImage createThumbnail(BufferedImage image, int thumbWidth)
BufferedImage. The original picture is not modified.
image- The original image to sample down
thumbWidth- The width of the thumbnail to be created
IllegalArgumentException- If thumbWidth is greater than image.getWidth()
Copyright 2010 JogAmp Community.