java.lang.Object
net.thucydides.model.images.ResizableImage
- Direct Known Subclasses:
ResizedImage
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprotected org.slf4j.LoggerintgetWidth()static ResizableImagerescaleCanvas(int height) protected ResizableImageresizeImage(int newWidth, int newHeight, BufferedImage image) protected ResizableImageresizeImageVertically(int newHeight, 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 newWidth, int newHeight, BufferedImage image) throws IOException - Throws:
IOException
-
resizeImageVertically
protected ResizableImage resizeImageVertically(int newHeight, 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
-