RecommendedStreamConfigurationMap.IsOutputSupportedFor 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| IsOutputSupportedFor(Int32) |
判斷輸出表面是否能傳遞 |
| IsOutputSupportedFor(Surface) |
判斷 在 |
IsOutputSupportedFor(Int32)
判斷輸出表面是否能傳遞 CameraDevice#createCaptureSession(SessionConfiguration) 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 若使用 A surface , format 則支援為 CameraDevice#createCaptureSession(SessionConfiguration)
- 屬性
備註
判斷輸出表面是否能傳遞 CameraDevice#createCaptureSession(SessionConfiguration) createCaptureSession特定使用者定義格式。
欲了解更多資訊,請參見 StreamConfigurationMap#isOutputSupportedFor。
Java 文件 android.hardware.camera2.params.RecommendedStreamConfigurationMap.isOutputSupportedFor(int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
IsOutputSupportedFor(Surface)
判斷 在 surface 當前狀態下是否適合作為輸出包含在 a CameraDevice#createCaptureSession(SessionConfiguration) 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 當前狀態下是否適合作為輸出包含在 a CameraDevice#createCaptureSession(SessionConfiguration) capture session 中。
更多資訊請參考 StreamConfigurationMap#isOutputSupportedFor。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。