|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.openutils.mgnlmedia.media.processors.BaseImageResolutionProcessor
public abstract class BaseImageResolutionProcessor
Base implementation of ImageResolutionProcessor.
| Constructor Summary | |
|---|---|
BaseImageResolutionProcessor()
|
|
| Method Summary | |
|---|---|
BufferedImage |
fill(BufferedImage original,
int x,
int y,
boolean cropCentered)
Resize an image to fill x or y and (if set) center and if cropCentered is true crop what outfit |
BufferedImage |
fitIn(BufferedImage original,
int x,
int y)
Resize an image to fit into x,y not changing image original side proportion |
BufferedImage |
fitIn(BufferedImage original,
int x,
int y,
Color background)
Resize an image to fit into the rect x, y and fill empty spaces with given background color |
protected BufferedImage |
resizeInOut(BufferedImage original,
int x,
int y,
boolean fit,
Color background)
Resize image to fit in x,y. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sourceforge.openutils.mgnlmedia.media.processors.ImageResolutionProcessor |
|---|
getImageForResolution |
| Constructor Detail |
|---|
public BaseImageResolutionProcessor()
| Method Detail |
|---|
public BufferedImage fitIn(BufferedImage original,
int x,
int y)
original - original imagex - max widthy - max height
public BufferedImage fitIn(BufferedImage original,
int x,
int y,
Color background)
original - original imagex - max widthy - max heightbackground - background to color empty spaces
protected BufferedImage resizeInOut(BufferedImage original,
int x,
int y,
boolean fit,
Color background)
original - original imagex - max widthy - max heightfit - fully fit x,y?background - color to fill empty bands if fit is true
public BufferedImage fill(BufferedImage original,
int x,
int y,
boolean cropCentered)
original - original imagex - min widthy - min heightcropCentered - crop image?
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||