Condividi tramite


Camera.Parameters.Zoom Property

Definition

Caution

deprecated

Gets current zoom value. -or- Sets current zoom value.

[System.Obsolete("deprecated")]
public virtual int Zoom { [Android.Runtime.Register("getZoom", "()I", "GetGetZoomHandler")] get; [Android.Runtime.Register("setZoom", "(I)V", "GetSetZoom_IHandler")] set; }
[<System.Obsolete("deprecated")>]
[<get: Android.Runtime.Register("getZoom", "()I", "GetGetZoomHandler")>]
[<set: Android.Runtime.Register("setZoom", "(I)V", "GetSetZoom_IHandler")>]
member this.Zoom : int with get, set

Property Value

the current zoom value. The range is 0 to #getMaxZoom. 0 means the camera is not zoomed.

Attributes

Remarks

Property getter documentation:

Gets current zoom value. This also works when smooth zoom is in progress. Applications should check #isZoomSupported before using this method.

Java documentation for android.hardware.Camera.Parameters.getZoom().

Property setter documentation:

Sets current zoom value. If the camera is zoomed (value > 0), the actual picture size may be smaller than picture size setting. Applications can check the actual picture size after picture is returned from PictureCallback. The preview size remains the same in zoom. Applications should check #isZoomSupported before using this method.

Java documentation for android.hardware.Camera.Parameters.setZoom(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to