public class ImageProcessorImpl extends Object implements ImageProcessor
| Modifier and Type | Field and Description |
|---|---|
protected int |
imageScaleWidth |
| Constructor and Description |
|---|
ImageProcessorImpl() |
| Modifier and Type | Method and Description |
|---|---|
int |
getImageScaleWidth()
Gets image width for scaling.
|
protected BufferedImage |
processImageScaling(BufferedImage image)
Creates a scaled new file.
|
void |
scaleImage(File imageFile,
File newImageFile)
Creates a scaled new file.
|
void |
scaleImage(InputStream in,
OutputStream out,
String formatName)
Creates a scaled new file.
|
void |
setImageScaleWidth(int imageScaleWidth)
Sets image width for scaling.
|
public int getImageScaleWidth()
getImageScaleWidth in interface ImageProcessorpublic void setImageScaleWidth(int imageScaleWidth)
setImageScaleWidth in interface ImageProcessorpublic void scaleImage(File imageFile, File newImageFile) throws IOException
scaleImage in interface ImageProcessorIOExceptionpublic void scaleImage(InputStream in, OutputStream out, String formatName) throws IOException
scaleImage in interface ImageProcessorIOExceptionprotected BufferedImage processImageScaling(BufferedImage image) throws IOException
IOExceptionCopyright © 2008-2015 Spring by Example. All Rights Reserved.