Class ImageUtils


  • public final class ImageUtils
    extends java.lang.Object

    Utility class for processing images.

    Project:

    Library for the integration with the services of @Firma, eVisor and TS@.

    Version:
    1.1, 18/04/2022.
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] rotate​(byte[] image, double angle, java.lang.String imageFormat)
      Method to rotate an image 90,180 or 270 degrees.
      • Methods inherited from class java.lang.Object

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

      • ImageUtils

        public ImageUtils()
    • Method Detail

      • rotate

        public static byte[] rotate​(byte[] image,
                                    double angle,
                                    java.lang.String imageFormat)
                             throws UtilsException
        Method to rotate an image 90,180 or 270 degrees.
        Parameters:
        image - Image that will be rotate.
        angle - Rotated angle. The allowed values are 90, 180 or 270.
        imageFormat - Format of image.
        Returns:
        Rotated image.
        Throws:
        UtilsException - if the method fails.