ImageCenterCrop
Center crops an image to a square of the specified size.
Usage
val centerCrop = ImageCenterCrop(224)
val cropped = centerCrop.apply(originalImage)Content copied to clipboard
Parameters
size
The size of the output square (width and height)