|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jopendocument.util.ImageUtils
public class ImageUtils
Tools for Image manipulation
| Constructor Summary | |
|---|---|
ImageUtils()
|
|
| Method Summary | |
|---|---|
static java.awt.image.BufferedImage |
createQualityResizedImage(java.awt.Image orginalImage,
float finalRatio,
boolean applySoftFilter,
java.awt.Color bgColor,
boolean fast)
Create a resized Image with high quality rendering, specifying a ratio rather than pixels. |
static java.awt.image.BufferedImage |
createQualityResizedImage(java.awt.Image orginalImage,
int width,
int height)
|
static java.awt.image.BufferedImage |
createQualityResizedImage(java.awt.Image orginalImage,
int width,
int height,
boolean keepRatio)
|
static java.awt.image.BufferedImage |
createQualityResizedImage(java.awt.Image orginalImage,
int width,
int height,
boolean applySoftFilter,
boolean keepRatio,
java.awt.Color bgColor,
boolean fast)
Create a resized Image with high quality rendering |
static java.awt.image.BufferedImage |
createQualityResizedImage(java.awt.Image orginalImage,
int width,
int height,
boolean applySoftFilter,
FillMode fillMode,
boolean fast)
|
static java.awt.image.BufferedImage |
createSmallerImage(java.io.File f,
int maxWidth,
int maxHeight)
|
static java.awt.image.BufferedImage |
createSmallerImage(java.awt.Image orginalImage,
int maxWidth,
int maxHeight)
Transform the passed image so that it fits into a rectangle of maxWidth by
maxHeight. |
static java.awt.image.BufferedImage |
getSoftFilteredImage(java.awt.image.BufferedImage bufferedImage)
Create an soft filtered Image |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageUtils()
| Method Detail |
|---|
public static java.awt.image.BufferedImage createSmallerImage(java.io.File f,
int maxWidth,
int maxHeight)
throws java.io.IOException
java.io.IOException
public static java.awt.image.BufferedImage createSmallerImage(java.awt.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 java.awt.image.BufferedImage createQualityResizedImage(java.awt.Image orginalImage,
float finalRatio,
boolean applySoftFilter,
java.awt.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 java.awt.image.BufferedImage createQualityResizedImage(java.awt.Image orginalImage,
int width,
int height,
boolean applySoftFilter,
boolean keepRatio,
java.awt.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 java.awt.image.BufferedImage createQualityResizedImage(java.awt.Image orginalImage,
int width,
int height,
boolean applySoftFilter,
FillMode fillMode,
boolean fast)
public static java.awt.image.BufferedImage createQualityResizedImage(java.awt.Image orginalImage,
int width,
int height)
public static java.awt.image.BufferedImage createQualityResizedImage(java.awt.Image orginalImage,
int width,
int height,
boolean keepRatio)
public static java.awt.image.BufferedImage getSoftFilteredImage(java.awt.image.BufferedImage bufferedImage)
bufferedImage - the orignial BufferedImage
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||