Class ScreenshotFormatter
java.lang.Object
net.thucydides.core.reports.html.screenshots.ScreenshotFormatter
Class designed to help resize and scale screenshots to a format that is compatible with the Thucydides reports.
-
Method Summary
Modifier and TypeMethodDescriptionnet.thucydides.model.domain.screenshots.ScreenshotexpandToHeight(int targetHeight) static ScreenshotFormatterforScreenshot(net.thucydides.model.domain.screenshots.Screenshot screenshot) inDirectory(File sourceDirectory) keepOriginals(boolean shouldKeepOriginalScreenshots)
-
Method Details
-
forScreenshot
public static ScreenshotFormatter forScreenshot(net.thucydides.model.domain.screenshots.Screenshot screenshot) -
inDirectory
-
keepOriginals
-
expandToHeight
public net.thucydides.model.domain.screenshots.Screenshot expandToHeight(int targetHeight) throws IOException - Throws:
IOException
-