net.thucydides.core.images
Class ResizableImage
java.lang.Object
net.thucydides.core.images.ResizableImage
- Direct Known Subclasses:
- ResizedImage
public class ResizableImage
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResizableImage
public ResizableImage(File screenshotFile)
throws IOException
- Throws:
IOException
getLogger
protected org.slf4j.Logger getLogger()
loadFrom
public static ResizableImage loadFrom(File screenshotFile)
throws IOException
- Throws:
IOException
getWitdh
public int getWitdh()
getHeight
public int getHeight()
rescaleCanvas
public ResizableImage rescaleCanvas(int height)
throws IOException
- Throws:
IOException
resizeImage
protected ResizableImage resizeImage(int width,
int targetHeight,
BufferedImage image)
throws IOException
- Throws:
IOException
saveTo
public void saveTo(File savedFile)
throws IOException
- If no resize operation has been done, just copy the file.
Otherwise we should be applying the saveTo() method on the ResizedImage class.
- Throws:
IOException
Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.