Camera.Parameters.SetPreviewSize(Int32, Int32) Method

Definition

Caution

deprecated

Sets the dimensions for preview pictures.

[Android.Runtime.Register("setPreviewSize", "(II)V", "GetSetPreviewSize_IIHandler")]
[System.Obsolete("deprecated")]
public virtual void SetPreviewSize (int width, int height);
[<Android.Runtime.Register("setPreviewSize", "(II)V", "GetSetPreviewSize_IIHandler")>]
[<System.Obsolete("deprecated")>]
abstract member SetPreviewSize : int * int -> unit
override this.SetPreviewSize : int * int -> unit

Parameters

width
Int32

the width of the pictures, in pixels

height
Int32

the height of the pictures, in pixels

Attributes

Remarks

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

See also

  • SetDisplayOrientation(Int32)
  • <xref:Android.Hardware.Camera.GetCameraInfo(System.Int32%2c+Android.Hardware.Camera.CameraInfo)>
  • <xref:Android.Hardware.Camera.Parameters.SetPictureSize(System.Int32%2c+System.Int32)>
  • <xref:Android.Hardware.Camera.Parameters.SetJpegThumbnailSize(System.Int32%2c+System.Int32)>