crop

abstract fun crop(image: ImageRef, polygon: List<PointF>): Result<ImageRef>

Crops the provided image using the specified polygon.

Return

The result containing the cropped image.

Parameters

image

The image to be cropped.

polygon

The polygon defining the crop area.