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 Details

    • forScreenshot

      public static ScreenshotFormatter forScreenshot(net.thucydides.model.domain.screenshots.Screenshot screenshot)
    • inDirectory

      public ScreenshotFormatter inDirectory(File sourceDirectory)
    • keepOriginals

      public ScreenshotFormatter keepOriginals(boolean shouldKeepOriginalScreenshots)
    • expandToHeight

      public net.thucydides.model.domain.screenshots.Screenshot expandToHeight(int targetHeight) throws IOException
      Throws:
      IOException