Camera.CameraInfo.Orientation Property

Definition

Caution

deprecated

The orientation of the camera image.

[Android.Runtime.Register("orientation")]
[System.Obsolete("deprecated")]
public int Orientation { get; set; }
[<Android.Runtime.Register("orientation")>]
[<System.Obsolete("deprecated")>]
member this.Orientation : int with get, set

Property Value

Attributes

Remarks

The orientation of the camera image. The value is the angle that the camera image needs to be rotated clockwise so it shows correctly on the display in its natural orientation. It should be 0, 90, 180, or 270.

For example, suppose a device has a naturally tall screen. The back-facing camera sensor is mounted in landscape. You are looking at the screen. If the top side of the camera sensor is aligned with the right edge of the screen in natural orientation, the value should be 90. If the top side of a front-facing camera sensor is aligned with the right of the screen, the value should be 270.

Java documentation for android.hardware.Camera.CameraInfo.orientation.

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)
  • SetRotation(Int32)
  • <xref:Android.Hardware.Camera.Parameters.SetPreviewSize(System.Int32%2c+System.Int32)>
  • <xref:Android.Hardware.Camera.Parameters.SetPictureSize(System.Int32%2c+System.Int32)>
  • <xref:Android.Hardware.Camera.Parameters.SetJpegThumbnailSize(System.Int32%2c+System.Int32)>