Class ImageUtils


  • public final class ImageUtils
    extends java.lang.Object
    Image utils class
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] resizeImage​(byte[] byteArray, int width)
      Resize an image
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • resizeImage

        public static byte[] resizeImage​(byte[] byteArray,
                                         int width)
                                  throws java.io.IOException
        Resize an image
        Parameters:
        byteArray - the original byte arrau
        width - the new width
        Returns:
        the resize byte array
        Throws:
        java.io.IOException - occurs during treatment