Camera.StartSmoothZoom(Int32) 方法

定义

注意

deprecated

平滑缩放到请求的值。

[Android.Runtime.Register("startSmoothZoom", "(I)V", "")]
[System.Obsolete("deprecated")]
public void StartSmoothZoom (int value);
[<Android.Runtime.Register("startSmoothZoom", "(I)V", "")>]
[<System.Obsolete("deprecated")>]
member this.StartSmoothZoom : int -> unit

参数

value
Int32

缩放值。 有效范围为 0 到 android.hardware.Camera.Parameters#getMaxZoom

属性

例外

如果缩放值无效,则为 。

如果方法失败,则为

注解

平滑缩放到请求的值。 驱动程序将通知 OnZoomChangeListener 缩放值,以及缩放是否在时间停止。 例如,假设当前缩放为 0,并使用值 3 调用 startSmoothZoom。 该方法 Camera.OnZoomChangeListener#onZoomChange(int, boolean, Camera) 将调用三次,缩放值为 1、2 和 3。 应用程序可以调用 #stopSmoothZoom 以提前停止缩放。 应用程序不应在缩放停止之前再次调用 startSmoothZoom 或更改缩放值。 如果提供的缩放值等于当前缩放值,则不会生成缩放回调。 如果 android.hardware.Camera.Parameters#isSmoothZoomSupported 返回 true,则支持此方法。

适用于 . 的 android.hardware.Camera.startSmoothZoom(int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于

另请参阅

  • <xref:Android.Hardware.Camera.SetZoomChangeListener(.IOnZoomChangeListener)>