Package io.scanbot.sdk.core.processor
Class ImageProcessor
-
- All Implemented Interfaces:
public final class ImageProcessor
Class for applying chains of image processing operations.
-
-
Constructor Summary
Constructors Constructor Description ImageProcessor()
-
Method Summary
Modifier and Type Method Description final Boolean
applyFilter(ImageRef container, ParametricFilter filter)
Process provided image with list of operations. final Boolean
crop(ImageRef container, List<PointF> polygon)
Crops image to the given bounding box. final Boolean
resize(ImageRef container, Integer maxSize)
Resizes image to the given size final Boolean
rotate(ImageRef container, ImageRotation rotation)
Rotates image by the given degrees which should be multiple of 90 -
-
Method Detail
-
applyFilter
final Boolean applyFilter(ImageRef container, ParametricFilter filter)
Process provided image with list of operations.
- Parameters:
filter
- filter to apply
-
crop
final Boolean crop(ImageRef container, List<PointF> polygon)
Crops image to the given bounding box.
-
rotate
final Boolean rotate(ImageRef container, ImageRotation rotation)
Rotates image by the given degrees which should be multiple of 90
-
-
-
-