Class ScreenshotFormatter
- java.lang.Object
-
- net.thucydides.core.reports.html.screenshots.ScreenshotFormatter
-
public class ScreenshotFormatter extends Object
Class designed to help resize and scale screenshots to a format that is compatible with the Thucydides reports.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ScreenshotexpandToHeight(int targetHeight)static ScreenshotFormatterforScreenshot(Screenshot screenshot)ScreenshotFormatterinDirectory(File sourceDirectory)ScreenshotFormatterkeepOriginals(boolean shouldKeepOriginalScreenshots)
-
-
-
Method Detail
-
forScreenshot
public static ScreenshotFormatter forScreenshot(Screenshot screenshot)
-
inDirectory
public ScreenshotFormatter inDirectory(File sourceDirectory)
-
keepOriginals
public ScreenshotFormatter keepOriginals(boolean shouldKeepOriginalScreenshots)
-
expandToHeight
public Screenshot expandToHeight(int targetHeight) throws IOException
- Throws:
IOException
-
-