ImageManipulator

Interface for ImageManipulator API. See class documentation for more details.

Inheritors

Functions

Link copied to clipboard
abstract fun cropRect(image: ImageRef, rect: RectF): Result<ImageRef>

Crops out the given rectangle from the image.

Link copied to clipboard
abstract fun flip(image: ImageRef, origin: ImageOrigin): Result<ImageRef>

Flips the given image horizontally or vertically.

Link copied to clipboard
abstract fun resize(image: ImageRef, size: Int): Result<ImageRef>

Resizes the given image to the given size.

Link copied to clipboard
abstract fun rotate(image: ImageRef, rotation: ImageRotation): Result<ImageRef>

Rotates the given image by the given angle.