|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.module.builders.ConvertJAI
Converts Images using image Java Advanced Imaging
| Field Summary | |
protected java.lang.String |
defaultImageFormat
The default image format. |
| Constructor Summary | |
ConvertJAI()
|
|
| Method Summary | |
protected static javax.media.jai.PlanarImage |
border(javax.media.jai.PlanarImage inImg,
int xpadding,
int ypadding)
Performs the 'border' operation: Adds a border to an image using the specified horizontal and vertical padding. |
byte[] |
convertImage(byte[] input,
java.util.List commands)
|
byte[] |
ConvertImage(byte[] input,
java.util.List commands)
|
protected static javax.media.jai.PlanarImage |
crop(javax.media.jai.PlanarImage inImg,
int x1,
int y1,
int x2,
int y2)
|
protected static javax.media.jai.PlanarImage |
flip(javax.media.jai.PlanarImage inImg)
Performs the 'flip' or 'flipy' operation: Flip an image across an imaginary vertical line that runs through the center of the image. |
protected static javax.media.jai.PlanarImage |
flop(javax.media.jai.PlanarImage inImg)
Performs the 'flop' or 'flipx' operation: Flip an image across an imaginary horizontal line that runs through the center of the image. |
protected java.lang.String |
getAlias(java.lang.String a)
MMBase has some abreviations to convert commands, like 's' for 'geometry'. |
protected static float |
getDeg2Rad(float deg)
|
protected int |
getOneInt(java.lang.String cmd)
|
void |
init(java.util.Map params)
|
protected static javax.media.jai.PlanarImage |
loadImage(java.lang.String filename)
|
protected static javax.media.jai.PlanarImage |
negate(javax.media.jai.PlanarImage inImg)
Performs the 'dia' or 'negate' operation. |
protected static javax.media.jai.PlanarImage |
rotate(javax.media.jai.PlanarImage inImg,
int x,
int y,
int a)
Performs the 'rotate' operation: rotates an image. |
protected static javax.media.jai.PlanarImage |
size(javax.media.jai.PlanarImage inImg,
int width,
int height,
boolean maintainAspectRation)
Performs the 's' or 'geometry' operation: Resize an image using specified width and height. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String defaultImageFormat
| Constructor Detail |
public ConvertJAI()
| Method Detail |
public void init(java.util.Map params)
init in interface ImageConvertInterface
public byte[] ConvertImage(byte[] input,
java.util.List commands)
ConvertImage in interface ImageConvertInterface
public byte[] convertImage(byte[] input,
java.util.List commands)
convertImage in interface ImageConvertInterfaceprotected java.lang.String getAlias(java.lang.String a)
a - alias
protected static javax.media.jai.PlanarImage crop(javax.media.jai.PlanarImage inImg,
int x1,
int y1,
int x2,
int y2)
protected static javax.media.jai.PlanarImage size(javax.media.jai.PlanarImage inImg,
int width,
int height,
boolean maintainAspectRation)
width - new width of the imageheight - new height of the imagemaintainAspectRation - if true, width and height are maximums: aspect ratio is maintained
protected static javax.media.jai.PlanarImage negate(javax.media.jai.PlanarImage inImg)
protected static javax.media.jai.PlanarImage rotate(javax.media.jai.PlanarImage inImg,
int x,
int y,
int a)
x - xposition of the rotationy - yposition of the rotationa - angle of the rotation
protected static javax.media.jai.PlanarImage border(javax.media.jai.PlanarImage inImg,
int xpadding,
int ypadding)
xpadding - the horizontal paddingypadding - the vertical padding
protected static javax.media.jai.PlanarImage flop(javax.media.jai.PlanarImage inImg)
protected static javax.media.jai.PlanarImage flip(javax.media.jai.PlanarImage inImg)
protected static javax.media.jai.PlanarImage loadImage(java.lang.String filename)
protected static float getDeg2Rad(float deg)
protected int getOneInt(java.lang.String cmd)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||