|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gerhardb.lib.image.ImageChangeUtil
public class ImageChangeUtil
| Method Summary | |
|---|---|
static float |
calcTheta(int fromWidth,
int fromHeight,
double toWidth,
double toHeight)
How to size the picture up or down to fit in the area given. |
static float |
calcThetaDown(int fromWidth,
int fromHeight,
double toWidth,
double toHeight)
How to size the picture down to fit in the area given. |
static float |
calcThetaUp(int fromWidth,
int fromHeight,
double toWidth,
double toHeight)
How to size the picture up to fit in the area given. |
static float |
calcThetaWidth(int fromWidth,
double toWidth)
How to size the picture to fit a given width. |
static java.awt.image.BufferedImage |
fitAspectDown(java.awt.image.BufferedImage image,
int scaleWidth,
int scaleHeight)
Adjust image to fit in the given size maintaining the aspect ratio. |
static java.awt.image.BufferedImage |
fitAspectFill(java.awt.image.BufferedImage image,
int scaleWidth,
int scaleHeight)
Adjust image to fit in the given size maintaining the aspect ratio. |
static java.awt.image.BufferedImage |
flip(java.awt.image.BufferedImage image)
|
static java.awt.image.BufferedImage |
resizeImageDown(java.awt.image.BufferedImage image,
double toWidth,
double toHeight)
|
static java.awt.image.BufferedImage |
rotateLeft(java.awt.image.BufferedImage image)
|
static java.awt.image.BufferedImage |
rotateRight(java.awt.image.BufferedImage image)
|
static java.awt.image.BufferedImage |
scale(java.awt.image.BufferedImage image,
float scale)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.awt.image.BufferedImage rotateRight(java.awt.image.BufferedImage image)
public static java.awt.image.BufferedImage rotateLeft(java.awt.image.BufferedImage image)
public static java.awt.image.BufferedImage flip(java.awt.image.BufferedImage image)
public static java.awt.image.BufferedImage scale(java.awt.image.BufferedImage image,
float scale)
public static java.awt.image.BufferedImage fitAspectDown(java.awt.image.BufferedImage image,
int scaleWidth,
int scaleHeight)
image - BufferedImagewidth - intheight - int
public static java.awt.image.BufferedImage fitAspectFill(java.awt.image.BufferedImage image,
int scaleWidth,
int scaleHeight)
image - BufferedImagewidth - intheight - intscaleUp - boolean If true, scale the image up to fit as well as down to fit.
public static java.awt.image.BufferedImage resizeImageDown(java.awt.image.BufferedImage image,
double toWidth,
double toHeight)
throws java.lang.Exception
java.lang.Exception
public static float calcTheta(int fromWidth,
int fromHeight,
double toWidth,
double toHeight)
public static float calcThetaWidth(int fromWidth,
double toWidth)
public static float calcThetaDown(int fromWidth,
int fromHeight,
double toWidth,
double toHeight)
public static float calcThetaUp(int fromWidth,
int fromHeight,
double toWidth,
double toHeight)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||