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 ImageProcessor
public void setImageScaleWidth(int imageScaleWidth)
setImageScaleWidth
in interface ImageProcessor
public void scaleImage(File imageFile, File newImageFile) throws IOException
scaleImage
in interface ImageProcessor
IOException
public void scaleImage(InputStream in, OutputStream out, String formatName) throws IOException
scaleImage
in interface ImageProcessor
IOException
protected BufferedImage processImageScaling(BufferedImage image) throws IOException
IOException
Copyright © 2008-2014 Spring by Example. All Rights Reserved.