centerCrop

expect fun centerCrop(width: Int, height: Int): LiteRtImage

Returns a center-cropped copy of this image.

Return

A new LiteRtImage containing the center-cropped region.

Parameters

width

The target width of the crop.

height

The target height of the crop.