Class ImageUtil

java.lang.Object
br.com.behaviortest.util.ImageUtil

public class ImageUtil
extends java.lang.Object
  • Field Details

    • FORMAT_PNG

      public static final java.lang.String FORMAT_PNG
    • FORMAT_JPG

      public static final java.lang.String FORMAT_JPG
  • Method Details

    • resizeImage

      public static java.awt.image.BufferedImage resizeImage​(java.io.File image, int newW, int newH) throws java.io.IOException
    • resizeImage

      public static java.awt.image.BufferedImage resizeImage​(java.awt.image.BufferedImage imagem, int newW, int newH)
    • converterInBase64

      public static java.lang.String converterInBase64​(java.awt.image.RenderedImage img, java.lang.String formatName)
    • converterVideoInBase64

      public static java.lang.String converterVideoInBase64​(java.lang.String path)
    • converterInImage

      public static java.awt.Image converterInImage​(java.lang.String base64)
    • converterInBase64

      public static java.lang.String converterInBase64​(java.lang.String path)
    • load

      public static byte[] load​(java.io.File file) throws java.io.IOException
    • converterInBufferedImage

      public static java.awt.image.BufferedImage converterInBufferedImage​(java.lang.String base64)
    • converterInInputStream

      public static java.io.InputStream converterInInputStream​(java.lang.String base64)
    • convertUrlToBase64

      public static java.lang.String convertUrlToBase64​(java.lang.String imageURL)
    • convertUrlToBufferedImage

      public static java.awt.image.BufferedImage convertUrlToBufferedImage​(java.lang.String imageURL)
    • convertToBase64

      public static java.lang.String convertToBase64​(java.io.InputStream is)
    • captureScreen

      public static java.lang.String captureScreen​(Configuration configuration)
    • getScreen

      public static java.awt.Rectangle getScreen​(java.lang.Integer screen)
    • startScreenRecording

      public static java.lang.String startScreenRecording​(Configuration configuration)
    • endScreenRecording

      public static void endScreenRecording​(Configuration configuration)