←Select platform

AutoRotateImage Property

Summary

Indicates whether rotation of the captured frame should be auto-corrected.

Syntax

C#
public bool AutoRotateImage {get; set;} 

Property Value

true to correct the rotation of the captured camera frames; otherwise, false. The default value is false.

Remarks

When accessing the camera feed of a mobile device, the camera sensor orientation is not consistent for each device. This is especially true for Android devices. By default, the CameraPreview will compensate for this and adjust the camera preview. However, frames captured through TakePicture or CameraView.FrameReceived will be delivered in the camera sensor's default orientation.

Example

C#
var leadCamera = new CameraView(); 
//set true if we need the frame rotation corrected by LEADTOOLS 
leadCamera.CameraOptions.AutoRotateImage = true; 

Requirements

Target Platforms

See Also

CameraOptions Class

CameraOptions Members

CameraOptions

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Camera.Xamarin Assembly