StreamConfigurationMap.GetValidOutputFormatsForInput(Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取重新处理输入格式的图像 format
输出格式。
[Android.Runtime.Register("getValidOutputFormatsForInput", "(I)[I", "", ApiSince=23)]
public int[]? GetValidOutputFormatsForInput(int inputFormat);
[<Android.Runtime.Register("getValidOutputFormatsForInput", "(I)[I", "", ApiSince=23)>]
member this.GetValidOutputFormatsForInput : int -> int[]
参数
- inputFormat
- Int32
返回
Int32[]
整数格式数组
- 属性
注解
获取重新处理输入格式的图像 format
输出格式。
提交 CaptureRequest
具有给定格式的输入 Surface 时,唯一允许的目标输出 CaptureRequest
是此方法的返回值中列出的格式。 将任何其他输出 Surface 作为目标将引发 IllegalArgumentException。 如果输入格式不支持任何输出格式,将返回空 int[] 。
此函数返回的所有图像格式都将在任一 ImageFormat
或中 PixelFormat
定义(并且不存在冲突的可能性)。
如果查询 #isOutputSupportedFor(int)
了此数组,则保证此数组中列出的格式返回 true。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。