|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.images.JAIImageConverter
Converts Images using image Java Advanced Imaging
| Constructor Summary | |
JAIImageConverter()
|
|
| 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,
String sourceFormat,
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. |
void |
init(Map params)
|
protected static javax.media.jai.PlanarImage |
loadImage(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 |
| Constructor Detail |
public JAIImageConverter()
| Method Detail |
public void init(Map params)
init in interface ImageConverter
public byte[] convertImage(byte[] input,
String sourceFormat,
List commands)
convertImage in interface ImageConverter
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)
inImg - the image to transformwidth - 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)
inImg - the image to transform
protected static javax.media.jai.PlanarImage rotate(javax.media.jai.PlanarImage inImg,
int x,
int y,
int a)
inImg - the image to transformx - 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)
inImg - the image to transformxpadding - the horizontal paddingypadding - the vertical padding
protected static javax.media.jai.PlanarImage flop(javax.media.jai.PlanarImage inImg)
inImg - the image to transform
protected static javax.media.jai.PlanarImage flip(javax.media.jai.PlanarImage inImg)
inImg - the image to transform
protected static javax.media.jai.PlanarImage loadImage(String filename)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||