public class ImageUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FILE_URI_SCHEME |
static String |
JAR_URI_SCHEME |
static int |
MARKING_WIDTH |
static int |
MAX_SCREENSHOT_HEIGHT_DEFAULT |
static String |
MAX_SCREENSHOT_HEIGHT_PROP |
static int |
MAX_SCREENSHOT_WIDTH_DEFAULT |
static String |
MAX_SCREENSHOT_WIDTH_PROP |
public static final String FILE_URI_SCHEME
public static final String JAR_URI_SCHEME
public static final int MARKING_WIDTH
public static final String MAX_SCREENSHOT_HEIGHT_PROP
public static final int MAX_SCREENSHOT_HEIGHT_DEFAULT
public static final String MAX_SCREENSHOT_WIDTH_PROP
public static final int MAX_SCREENSHOT_WIDTH_DEFAULT
public static BufferedImage screenshot2Image(Screenshot input)
public static Screenshot image2Screenshot(String prefix, BufferedImage image)
public static Screenshot mark(Screenshot image, Rectangle mark)
public static BufferedImage mark(BufferedImage image, Rectangle mark)
public static BufferedImage mark(BufferedImage image, List<Rectangle> marks)
public static BufferedImage toBufferedImage(Image img)
public static BufferedImage readImage(File file) throws IOException
IOExceptionpublic static BufferedImage readImage(String path) throws IOException
IOExceptionpublic static Image scaleProportionallyToMaxWidthHeight(BufferedImage image, int maxWidth, int maxHeight)
public static Image scaleToSameSize(BufferedImage img1, BufferedImage img2)
public static Screenshot cutImage(Screenshot screenshot, Rectangle bounds)
public static BufferedImage cutImage(BufferedImage image, Rectangle bounds)
public static BufferedImage cutToMax(BufferedImage image)
public static void exportScreenshot(Screenshot image, File result) throws IOException
IOExceptionpublic static BufferedImage toBufferedImage(Icon icon, Component component)
public static BufferedImage resizeImage(BufferedImage image, int width, int height)
public static int extractScale()
Copyright © 2019 ReTest GmbH. All rights reserved.