语言

StreamConfigurationMap.GetOutputFormats 方法

定义

获取此流配置中的图像 format 输出格式。

[Android.Runtime.Register("getOutputFormats", "()[I", "")]
public int[]? GetOutputFormats();
[<Android.Runtime.Register("getOutputFormats", "()[I", "")>]
member this.GetOutputFormats : unit -> int[]

返回

Int32[]

整数格式数组

特性

注解

获取此流配置中的图像 format 输出格式。

此函数返回的所有图像格式都将在任一 ImageFormat 或中 PixelFormat 定义(并且不存在冲突的可能性)。

如果查询 #isOutputSupportedFor(int)了此数组,则保证此数组中列出的格式返回 true。

Java文档android.hardware.camera2.params.StreamConfigurationMap.getOutputFormats()。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

另请参阅