@ThingworxExtensionApiClass(since={6,6}, canInstantiate=true) public final class ImageUtilities extends java.lang.Object
Constructor and Description |
---|
ImageUtilities() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
cropAndResizeImage(byte[] imageData,
int x,
int y,
int cropWidth,
int cropHeight,
int width,
int height) |
static byte[] |
cropImage(byte[] imageData,
int x,
int y,
int cropWidth,
int cropHeight) |
static byte[] |
formatImage(byte[] imageData) |
static byte[] |
formatImage(byte[] imageData,
java.lang.String mimeType) |
static byte[] |
resizeImage(byte[] imageData,
int width,
int height) |
@ThingworxExtensionApiMethod(since={6,6}) public static byte[] resizeImage(byte[] imageData, int width, int height) throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public static byte[] cropImage(byte[] imageData, int x, int y, int cropWidth, int cropHeight) throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={6,6}) public static byte[] cropAndResizeImage(byte[] imageData, int x, int y, int cropWidth, int cropHeight, int width, int height) throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={7,4}) public static byte[] formatImage(byte[] imageData) throws java.lang.Exception
java.lang.Exception
- If an error occurs@ThingworxExtensionApiMethod(since={8,4}) public static byte[] formatImage(byte[] imageData, java.lang.String mimeType) throws java.lang.Exception
java.lang.Exception
- If an error occurs