public class AutoCropTransformation extends ImageTransformation
Constructor and Description |
---|
AutoCropTransformation() |
Modifier and Type | Method and Description |
---|---|
BufferedImage |
transform(BufferedImage image,
Object[] params)
Transforms image using specific transformation algorithm and array of parameters.
|
Object[] |
validateParams(Object[] params)
Validates parameters for transformation.
|
renderedImage2Image
public BufferedImage transform(BufferedImage image, Object[] params) throws Exception
ImageTransformation
transform
in class ImageTransformation
image
- the input imageparams
- the array of parametersException
- in case of any errorpublic Object[] validateParams(Object[] params) throws Exception
ImageTransformation
validateParams
in class ImageTransformation
params
- the array of parametersException
- the "Validation failed" exception if validation failedCopyright © 2010-2020 Toolsverse. All Rights Reserved.