RecommendedStreamConfigurationMap.IsOutputSupportedFor 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
IsOutputSupportedFor(Int32) |
确定是否可以传递 |
IsOutputSupportedFor(Surface) |
确定其当前状态是否 |
IsOutputSupportedFor(Int32)
确定是否可以传递 CameraDevice#createCaptureSession createCaptureSession
具有特定用户定义格式的输出图面。
[Android.Runtime.Register("isOutputSupportedFor", "(I)Z", "", ApiSince=29)]
public bool IsOutputSupportedFor (int format);
[<Android.Runtime.Register("isOutputSupportedFor", "(I)Z", "", ApiSince=29)>]
member this.IsOutputSupportedFor : int -> bool
参数
- format
- Int32
来自任一格式 ImageFormat
或 PixelFormat
返回
true
如果对此使用surface
,则支持<CameraDevice#createCaptureSession
- 属性
注解
确定是否可以传递 CameraDevice#createCaptureSession createCaptureSession
具有特定用户定义格式的输出图面。
有关详细信息, StreamConfigurationMap#isOutputSupportedFor
请参阅 。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。
适用于
IsOutputSupportedFor(Surface)
确定其当前状态是否 surface
适合作为输出包含在 CameraDevice#createCaptureSession capture session
其中。
[Android.Runtime.Register("isOutputSupportedFor", "(Landroid/view/Surface;)Z", "", ApiSince=29)]
public bool IsOutputSupportedFor (Android.Views.Surface surface);
[<Android.Runtime.Register("isOutputSupportedFor", "(Landroid/view/Surface;)Z", "", ApiSince=29)>]
member this.IsOutputSupportedFor : Android.Views.Surface -> bool
参数
- surface
- Surface
对象 Surface
引用
返回
true
如果支持,则为 ;否则为 false
- 属性
注解
确定其当前状态是否 surface
适合作为输出包含在 CameraDevice#createCaptureSession capture session
其中。
有关详细信息, StreamConfigurationMap#isOutputSupportedFor
请参阅 。
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。