public class ImageUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FORMAT_JPG |
static String |
FORMAT_PNG |
| Modifier and Type | Method and Description |
|---|---|
static String |
captureScreen(Configuration configuration) |
static String |
converterInBase64(RenderedImage img,
String formatName) |
static String |
converterInBase64(String path) |
static BufferedImage |
converterInBufferedImage(String base64) |
static Image |
converterInImage(String base64) |
static InputStream |
converterInInputStream(String base64) |
static String |
converterVideoInBase64(String path) |
static String |
convertToBase64(InputStream is) |
static String |
convertUrlToBase64(String imageURL) |
static BufferedImage |
convertUrlToBufferedImage(String imageURL) |
static void |
endScreenRecording() |
static Rectangle |
getScreen(Integer screen) |
static byte[] |
load(File file) |
static BufferedImage |
resizeImage(BufferedImage imagem,
int newW,
int newH) |
static BufferedImage |
resizeImage(File image,
int newW,
int newH) |
static String |
startScreenRecording(Configuration configuration,
Browser browser) |
public static final String FORMAT_PNG
public static final String FORMAT_JPG
public static BufferedImage resizeImage(File image, int newW, int newH) throws IOException
public static BufferedImage resizeImage(BufferedImage imagem, int newW, int newH)
public static String converterInBase64(RenderedImage img, String formatName)
public static byte[] load(File file) throws IOException
public static BufferedImage converterInBufferedImage(String base64)
public static InputStream converterInInputStream(String base64)
public static BufferedImage convertUrlToBufferedImage(String imageURL)
public static String convertToBase64(InputStream is)
public static String captureScreen(Configuration configuration)
public static String startScreenRecording(Configuration configuration, Browser browser)
public static void endScreenRecording()
Copyright © 2021. All rights reserved.