setCropRect
Sets the crop rectangle of the VideoComponent.
This function adjusts the video image to fill the screen without distortion, accounting for differences between the image and screen aspect ratios.
Parameters
transformMode
The image's transform mode, indicating flips or rotations. Obtain this by calling getTransformMode(img:Image) where img is the video image.
rect
The crop rectangle of the video image, derived from the Android API: val rect = img.cropRect. The Rect class defines a rectangle using four integer coordinates: left, top (top-left corner), and right, bottom (bottom-right corner).