AVCaptureStillImageOutput.AutomaticallyEnablesStillImageStabilizationWhenAvailable 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
控制是否應該使用自動影像防震
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool AutomaticallyEnablesStillImageStabilizationWhenAvailable { [Foundation.Export("automaticallyEnablesStillImageStabilizationWhenAvailable")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)] get; [Foundation.Export("setAutomaticallyEnablesStillImageStabilizationWhenAvailable:")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.AutomaticallyEnablesStillImageStabilizationWhenAvailable : bool with get, set
屬性值
針對支援硬體影像防震的裝置,預設值為 true,否則為 false。
- 屬性
備註
影像防震會在拍攝圖片時產生一小幅延遲。 這是關閉此功能的原因,因為此功能預設為啟用。
嘗試在不支援影像防震的硬體上將此值設定為 true,將會導致擲回例外狀況。 IsStillImageStabilizationSupported使用 屬性來查詢硬體是否支援它。
if (capture.IsStillImageStabilizationSupported)
capture.AutomaticallyEnableStillImageStabilizationWhenAvailable = true;