public class ResizableImage extends Object
Constructor and Description |
---|
ResizableImage(File screenshotFile) |
Modifier and Type | Method and Description |
---|---|
int |
getHeight() |
protected org.slf4j.Logger |
getLogger() |
int |
getWitdh() |
static ResizableImage |
loadFrom(File screenshotFile) |
ResizableImage |
rescaleCanvas(int height) |
protected ResizableImage |
resizeImage(int width,
int targetHeight,
BufferedImage image) |
void |
saveTo(File savedFile)
If no resize operation has been done, just copy the file.
|
public ResizableImage(File screenshotFile) throws IOException
IOException
protected org.slf4j.Logger getLogger()
public static ResizableImage loadFrom(File screenshotFile) throws IOException
IOException
public int getWitdh()
public int getHeight()
public ResizableImage rescaleCanvas(int height) throws IOException
IOException
protected ResizableImage resizeImage(int width, int targetHeight, BufferedImage image) throws IOException
IOException
public void saveTo(File savedFile) throws IOException
IOException
Copyright © 2011–2014 Wakaleo Consulting. All rights reserved.