Camera.CameraInfo.Orientation 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
注意
deprecated
相机图像的方向。
[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
属性值
在显示器的自然方向中显示相机图像所需的顺时针旋转:0、90、180 或 270。
- 特性
注解
相机图像的方向。 该值是相机图像需要顺时针旋转的角度,因此它在显示器的自然方向上正确显示。 它应为 0、90、180 或 270。
例如,假设设备具有自然高的屏幕。 背面相机传感器安装在横向中。 你正在查看屏幕。 如果相机传感器的上侧与屏幕右边缘对齐,则该值应为 90。 如果前置相机传感器的顶部与屏幕右侧对齐,则该值应为 270。
Java文档android.hardware.Camera.CameraInfo.orientation。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
另请参阅
- 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)>