CameraFrame

data class CameraFrame(val cameraImage: CameraImage, val width: Int, val height: Int, val rotation: Int, val previewTransformation: Matrix)

Type containing a frame captured from the Camera composable.

Constructors

Link copied to clipboard
constructor(cameraImage: CameraImage, width: Int, height: Int, rotation: Int, previewTransformation: Matrix)

Properties

Link copied to clipboard

The platform-specific image.

Link copied to clipboard
val height: Int

Image height in pixels.

Link copied to clipboard

Determine if the rotation angle indicates the camera was used from a landscape phone orientation mode.

Link copied to clipboard

A matrix to convert from coordinates in CameraImage to coordinates in the preview.

Link copied to clipboard

The device screen orientation angle in degrees clockwise from portrait (0) at the moment the image was taken.

Link copied to clipboard
val width: Int

Image width in pixels.