Android.Hardware.Camera2.CaptureResult.JpegThumbnailSize Property

Syntax

[Android.Runtime.Register("JPEG_THUMBNAIL_SIZE")]
public static CaptureResult.Key JpegThumbnailSize { get; }

See Also

CameraCharacteristics.JpegAvailableThumbnailSizes

Value

Documentation for this section has not yet been entered.

Remarks

Resolution of embedded JPEG thumbnail.

When set to (0, 0) value, the JPEG EXIF will not contain thumbnail, but the captured JPEG will still be a valid image.

For best results, when issuing a request for a JPEG image, the thumbnail size selected should have the same aspect ratio as the main JPEG output.

If the thumbnail image aspect ratio differs from the JPEG primary image aspect ratio, the camera device creates the thumbnail by cropping it from the primary image. For example, if the primary image has 4:3 aspect ratio, the thumbnail image has 16:9 aspect ratio, the primary image will be cropped vertically (letterbox) to generate the thumbnail image. The thumbnail image will always have a smaller Field Of View (FOV) than the primary image when aspect ratios differ.

Range of valid values:

CameraCharacteristics.JpegAvailableThumbnailSizes

This key is available on all devices.

[Android Documentation]

Requirements

Namespace: Android.Hardware.Camera2
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0