cropRect

abstract fun cropRect(image: ImageRef, rect: RectF): Result<ImageRef>

Crops out the given rectangle from the image.

Return

Cropped image.

Parameters

image

The image to crop.

rect

The rectangle in normalized coordinates to crop.