Documentation for this section has not yet been entered.
Get the format for this image. This format determines the number of ByteBuffers needed to represent the image, and the general layout of the pixel data in each in ByteBuffer.
Format | Plane count | Layout details |
---|---|---|
Android.Graphics.ImageFormat.Jpeg | 1 | Compressed data, so row and pixel strides are 0. To uncompress, use Android.Graphics.BitmapFactory.DecodeByteArray(Byte[], System.Int32, System.Int32). |
Android.Graphics.ImageFormat.Yuv420888 | 3 | A luminance plane followed by the Cb and Cr chroma planes. The chroma planes have half the width and height of the luminance plane (4:2:0 subsampling). Each pixel sample in each plane has 8 bits. Each plane has its own row stride and pixel stride. |
Android.Graphics.ImageFormat.RawSensor | 1 | A single plane of raw sensor image data, with 16 bits per color sample. The details of the layout need to be queried from the source of the raw sensor data, such as Android.Hardware.Camera2.CameraDevice. |
The format is one of the values from Android.Graphics.ImageFormat. The mapping between the formats and the planes is as follows: