←Select platform

AutoRotateImage Property

Summary

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

Xamarin Framework Deprecation

As of LEADTOOLS v23, The cross-platform Xamarin framework has been deprecated and replaced with LEADTOOLS .NET MAUI framework.

For any LEADTOOLS Xamarin apps you have already built, we recommend you migrate to the LEADTOOLS .NET MAUI framework. To help you with the migration, review the LEADTOOLS .NET MAUI tutorials to get you started.

This change is driven by Microsoft's announcement to end Xamarin support.

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 23.0.2024.5.22
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Camera.Xamarin Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.