CropFrame

class CropFrame(val contentRect: Rect)(source)

The mapping between a normalized crop rectangle and the view pixels the video is actually drawn into.

contentRect is the letterboxed rectangle a video fills inside its surface, from videoContentRect . Every part of the overlay reads its geometry through this.

Constructors

Link copied to clipboard
constructor(contentRect: Rect)

Properties

Link copied to clipboard

Where the video is drawn, in the overlay's own coordinate space.

Functions

Link copied to clipboard
fun handleAt(position: Offset, rect: NormalizedRect, touchRadiusPx: Float): CropHandle?

The handle at position for a crop currently at rect.

Link copied to clipboard

rect mapped out of view pixels and back into the normalized frame.

Link copied to clipboard

rect mapped out of the normalized frame and into view pixels.