|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jopendocument.util.ImageUtils
public class ImageUtils
Tools for Image manipulation
Constructor Summary | |
---|---|
ImageUtils()
|
Method Summary | |
---|---|
static BufferedImage |
createQualityResizedImage(Image orginalImage,
float finalRatio,
boolean applySoftFilter,
Color bgColor,
boolean fast)
Create a resized Image with high quality rendering, specifying a ratio rather than pixels. |
static BufferedImage |
createQualityResizedImage(Image orginalImage,
int width,
int height)
|
static BufferedImage |
createQualityResizedImage(Image orginalImage,
int width,
int height,
boolean keepRatio)
|
static BufferedImage |
createQualityResizedImage(Image orginalImage,
int width,
int height,
boolean applySoftFilter,
boolean keepRatio,
Color bgColor,
boolean fast)
Create a resized Image with high quality rendering |
static BufferedImage |
createQualityResizedImage(Image orginalImage,
int width,
int height,
boolean applySoftFilter,
FillMode fillMode,
boolean fast)
|
static BufferedImage |
createSmallerImage(File f,
int maxWidth,
int maxHeight)
|
static BufferedImage |
createSmallerImage(Image orginalImage,
int maxWidth,
int maxHeight)
Transform the passed image so that it fits into a rectangle of maxWidth by
maxHeight . |
static BufferedImage |
getSoftFilteredImage(BufferedImage bufferedImage)
Create an soft filtered Image |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageUtils()
Method Detail |
---|
public static BufferedImage createSmallerImage(File f, int maxWidth, int maxHeight) throws IOException
IOException
public static BufferedImage createSmallerImage(Image orginalImage, int maxWidth, int maxHeight)
maxWidth
by
maxHeight
.
orginalImage
- the image to transform.maxWidth
- the maximum width of the returned image.maxHeight
- the maximum height of the returned image.
null
if original
already fits.public static BufferedImage createQualityResizedImage(Image orginalImage, float finalRatio, boolean applySoftFilter, Color bgColor, boolean fast)
orginalImage
- the original ImagefinalRatio
- the ratio that the returned image will have.applySoftFilter
- soft filterbgColor
- the background colorfast
- algorithm to use for resampling.
public static BufferedImage createQualityResizedImage(Image orginalImage, int width, int height, boolean applySoftFilter, boolean keepRatio, Color bgColor, boolean fast)
orginalImage
- the original Imagewidth
- the desired widthheight
- the desired heightsapplySoftFilter
- soft filterkeepRatio
- true
to keep the ratiobgColor
- the background colorfast
- algorithm to use for resampling.
public static BufferedImage createQualityResizedImage(Image orginalImage, int width, int height, boolean applySoftFilter, FillMode fillMode, boolean fast)
public static BufferedImage createQualityResizedImage(Image orginalImage, int width, int height)
public static BufferedImage createQualityResizedImage(Image orginalImage, int width, int height, boolean keepRatio)
public static BufferedImage getSoftFilteredImage(BufferedImage bufferedImage)
bufferedImage
- the orignial BufferedImage
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |