CameraSizePair

data class CameraSizePair(val previewSize: Camera.Size, val pictureSize: Camera.Size?)

Stores a preview size and a corresponding same-aspect-ratio picture size. To avoid distorted preview images on some devices, the picture size must be set to a size that is the same aspect ratio as the preview size or the preview may end up being distorted. If the picture size is null, then there is no picture size with the same aspect ratio as the preview size.

Constructors

Link copied to clipboard
fun CameraSizePair(previewSize: Camera.Size, pictureSize: Camera.Size?)

Properties

Link copied to clipboard
val picture: Size?
Link copied to clipboard
val pictureSize: Camera.Size?
Link copied to clipboard
val preview: Size
Link copied to clipboard
val previewSize: Camera.Size