public class ImageUtil extends Object
| Constructor and Description |
|---|
ImageUtil() |
| Modifier and Type | Method and Description |
|---|---|
static BufferedImage |
changeBrightness(BufferedImage inputImage,
float brightness) |
static int[] |
getCanvasFormatPixels(BufferedImage inputImage) |
static byte[] |
getImageBytes(BufferedImage inputImage) |
static BufferedImage |
getImageFromBytes(byte[] inputImageBytes) |
static BufferedImage |
getImageFromCanvasPixelArray(int[] pixelArray,
BufferedImage imageMetadata) |
static String |
getImageType(byte[] inputByteArray) |
static byte[] |
setGlitchQuality(byte[] inputImageBytes,
int quality) |
public static int[] getCanvasFormatPixels(BufferedImage inputImage)
public static BufferedImage getImageFromCanvasPixelArray(int[] pixelArray, BufferedImage imageMetadata)
public static BufferedImage changeBrightness(BufferedImage inputImage, float brightness)
public static byte[] setGlitchQuality(byte[] inputImageBytes,
int quality)
throws Exception
Exceptionpublic static BufferedImage getImageFromBytes(byte[] inputImageBytes) throws Exception
Exceptionpublic static byte[] getImageBytes(BufferedImage inputImage) throws Exception
ExceptionCopyright © 2017. All rights reserved.