Share via


ImageFormat.FlexRgba8888 Field

Definition

Caution

This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.

Multi-plane Android RGBA format

[Android.Runtime.Register("FLEX_RGBA_8888", ApiSince=23)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.", true)]
public const Android.Graphics.ImageFormatType FlexRgba8888 = 42;
[<Android.Runtime.Register("FLEX_RGBA_8888", ApiSince=23)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Graphics.ImageFormatType enum directly instead of this field.", true)>]
val mutable FlexRgba8888 : Android.Graphics.ImageFormatType

Field Value

Value = 42
Attributes

Remarks

Multi-plane Android RGBA format

This format is a generic RGBA format, capable of describing most RGBA formats, with 8 bits per color sample.

Images in this format are always represented by four separate buffers of data, one for each color plane. Additional information always accompanies the buffers, describing the row stride and the pixel stride for each plane.

The order of planes in the array returned by android.media.Image#getPlanes() Image#getPlanes() is guaranteed such that plane #0 is always R (red), plane #1 is always G (green), plane #2 is always B (blue), and plane #3 is always A (alpha). This format may represent pre-multiplied or non-premultiplied alpha.

All four planes are guaranteed to have the same row strides and pixel strides.

For example, the android.media.Image object can provide data in this format from a android.media.MediaCodec through android.media.MediaCodec#getOutputImage object.

Java documentation for android.graphics.ImageFormat.FLEX_RGBA_8888.

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