Share via


ImageReader.ImageFormat Property

Definition

The default ImageFormat image format of Image Images.

public virtual Android.Graphics.ImageFormatType ImageFormat { [Android.Runtime.Register("getImageFormat", "()I", "GetGetImageFormatHandler")] get; }
[<get: Android.Runtime.Register("getImageFormat", "()I", "GetGetImageFormatHandler")>]
member this.ImageFormat : Android.Graphics.ImageFormatType

Property Value

the expected format of an Image

Attributes

Remarks

The default ImageFormat image format of Image Images.

Some color formats may be overridden by the producer sending buffers to this ImageReader's Surface if the default color format allows. ImageReader guarantees that all Image Images acquired from ImageReader (for example, with #acquireNextImage) will have a "compatible" format to what was specified in #newInstance. As of now, each format is only compatible to itself. The actual format of the images can be found using Image#getFormat.

Use this function if the ImageReader instance is created by factory method newInstance function or by builder pattern ImageReader.Builder and using Builder#setImageFormat.

Java documentation for android.media.ImageReader.getImageFormat().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also