crop

expect fun crop(x: Int, y: Int, width: Int, height: Int): LiteRtImage

Returns a cropped copy of this image.

Return

A new LiteRtImage containing the cropped region.

Parameters

x

The leftmost pixel of the crop region.

y

The topmost pixel of the crop region.

width

The width of the crop region.

height

The height of the crop region.