Package net.thucydides.core.images
Class ResizableImage
java.lang.Object
net.thucydides.core.images.ResizableImage
- Direct Known Subclasses:
ResizedImage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprotected org.slf4j.LoggerintgetWidth()static ResizableImagerescaleCanvas(int height) protected ResizableImageresizeImage(int width, int targetHeight, BufferedImage image) voidIf no resize operation has been done, just copy the file.
-
Constructor Details
-
ResizableImage
- Throws:
IOException
-
-
Method Details
-
getLogger
protected org.slf4j.Logger getLogger() -
loadFrom
- Throws:
IOException
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
rescaleCanvas
- Throws:
IOException
-
resizeImage
protected ResizableImage resizeImage(int width, int targetHeight, BufferedImage image) throws IOException - Throws:
IOException
-
saveTo
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
-