|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.shephertz.app42.paas.sdk.jme.imageProcessor.ImageProcessorService
public class ImageProcessorService
The ImageProcessor service is a Image utility service on the Cloud. Developers can upload files on the cloud and perform various Image Manipulation operations on the Uploaded Images e.g. resize, scale, thumbnail, crop etc. It is especially useful for Mobile Apps when they dont want to store Images locally and dont want to perform processor intensive operations. It is also useful for web applications who want to perform complex Image Operations
Image
Constructor Summary | |
---|---|
ImageProcessorService(java.lang.String apiKey,
java.lang.String secretKey,
java.lang.String baseURL)
|
Method Summary | |
---|---|
Image |
convertFormat(java.lang.String name,
java.io.InputStream imageIS,
java.lang.String formatToConvert)
Converts the format of the image. |
Image |
crop(java.lang.String name,
java.io.InputStream imageIS,
java.lang.Integer width,
java.lang.Integer height,
java.lang.Integer x,
java.lang.Integer y)
Crops image based on width, height and x, y coordinates via Stream. |
Image |
resize(java.lang.String name,
java.io.InputStream imageIS,
java.lang.Integer width,
java.lang.Integer height)
Resize image via Stream. |
Image |
resizeByPercentage(java.lang.String name,
java.io.InputStream imageIS,
java.lang.Double percentage)
Resize image by Percentage via Stream. |
Image |
scale(java.lang.String name,
java.io.InputStream imageIS,
java.lang.Integer width,
java.lang.Integer height)
Scales the image based on width and height via Stream. |
Image |
scaleByPercentage(java.lang.String name,
java.io.InputStream imageIS,
java.lang.Double percentage)
Scales the image by Percentage via Stream. |
Image |
thumbnail(java.lang.String name,
java.io.InputStream imageIS,
java.lang.Integer width,
java.lang.Integer height)
Creates a thumbnail of the image via Stream. |
Image |
thumbnailByPercentage(java.lang.String name,
java.io.InputStream imageIS,
java.lang.Double percentage)
Creates a thumbnail of the image by Percentage via Stream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageProcessorService(java.lang.String apiKey, java.lang.String secretKey, java.lang.String baseURL)
Method Detail |
---|
public Image convertFormat(java.lang.String name, java.io.InputStream imageIS, java.lang.String formatToConvert) throws App42Exception
name
- - Name of the image to convertinputStream
- - InputStream of the local file to convertformatToConvert
- - to which file needs to be converted
App42Exception
public Image crop(java.lang.String name, java.io.InputStream imageIS, java.lang.Integer width, java.lang.Integer height, java.lang.Integer x, java.lang.Integer y) throws App42Exception
name
- - Name of the image to cropinputStream
- - InputStream of the local file to cropwidth
- - Width of the image to cropheight
- - Height of the image to cropx
- - Coordinate Xy
- - Coordinate Y
App42Exception
public Image resize(java.lang.String name, java.io.InputStream imageIS, java.lang.Integer width, java.lang.Integer height) throws App42Exception
name
- - Name of the image to resizeinputStream
- - InputStream of the local file to resizewidth
- - Width of the image to resizeheight
- - Height of the image to resize
App42Exception
public Image resizeByPercentage(java.lang.String name, java.io.InputStream imageIS, java.lang.Double percentage) throws App42Exception
name
- - Name of the image to resizeinputStream
- - InputStream of the local file to resizepercentage
- - Percentage to which image has to be resized
App42Exception
public Image scale(java.lang.String name, java.io.InputStream imageIS, java.lang.Integer width, java.lang.Integer height) throws App42Exception
name
- - Name of the image to scaleinputStream
- - InputStream of the local file to scalewidth
- - Width of the image to scaleheight
- - Height of the image to scale
App42Exception
public Image scaleByPercentage(java.lang.String name, java.io.InputStream imageIS, java.lang.Double percentage) throws App42Exception
name
- - Name of the image file to scaleinputStream
- - InputStream of the local file to scalepercentage
- - Percentage to which image has to be scaled
App42Exception
public Image thumbnail(java.lang.String name, java.io.InputStream imageIS, java.lang.Integer width, java.lang.Integer height) throws App42Exception
name
- - Name of the image file for which thumbnail has to be createdinputStream
- - InputStream of the local file whose thumbnail has to be
createdwidth
- - Width of the image for thumbnailheight
- - Height of the image for thumbnail
App42Exception
public Image thumbnailByPercentage(java.lang.String name, java.io.InputStream imageIS, java.lang.Double percentage) throws App42Exception
name
- - Name of the image file for which thumbnail has to be createdinputStream
- - InputStream of the local file whose thumbnail has to be
createdpercentage
- - Percentage for thumbnail
App42Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |