Share via


AVCaptureStillImageOutput.AutomaticallyEnablesStillImageStabilizationWhenAvailable 属性

定义

控制是否应使用自动图像防抖动

[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;

适用于