Package es.gob.afirma.mreport.utils
Class ImageUtils
- java.lang.Object
-
- es.gob.afirma.mreport.utils.ImageUtils
-
public final class ImageUtils extends java.lang.ObjectUtility 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.
-
-
-
Method Detail
-
rotate
public static byte[] rotate(byte[] image, double angle, java.lang.String imageFormat) throws UtilsExceptionMethod 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.
-
-