ImageFormat.FlexRgba8888 字段

定义

注意

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

多平面 Android RGBA 格式

[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

字段值

Value = 42
属性

注解

多平面 Android RGBA 格式

此格式是一种通用 RGBA 格式,能够描述大多数 RGBA 格式,每个颜色样本 8 位。

此格式的图像始终由四个单独的数据缓冲区表示,每个颜色平面各有一个。 其他信息始终伴随缓冲区,描述每个平面的行步幅和像素步幅。

保证返回 android.media.Image#getPlanes() Image#getPlanes() 的数组中的平面顺序,以便平面 #0 始终为 R(红色),平面 #1 始终为 G(绿色),平面 #2 始终为 B(蓝色),平面 #3 始终为 A(alpha)。 此格式可能表示预乘或非预乘 alpha。

所有四个平面都保证具有相同的行步长和像素步幅。

例如,该android.media.Image对象可以通过对象提供此格式android.media.MediaCodecandroid.media.MediaCodec#getOutputImage的数据。

适用于 . 的 android.graphics.ImageFormat.FLEX_RGBA_8888Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于