[英]ZXing.net.mobile scan in landscape orientation
我使用了Zxing.Net.Mobile Nuget包...我将Auto-rotate = false设置为可以扫描垂直条形码。 问题是因为它开始以纵向扫描,所以没有横向扫描,而且方向锁定。 我想要一个扫描锁定在横向的选项。 这是我的代码:
Button scanbutton = FindViewById<Button>(Resource.Id.ScanButton);
scanbutton.Click += async (sender, e) =>
{
var result = await _scanner.Scan(new MobileBarcodeScanningOptions
{
AutoRotate = false,
});
if (result != null)
{
await CallService();
}
};
检查TryHarder = true
MobileBarcodeScanningOptions
适合您。 如果激活,密码将旋转三遍并从所有90°角度进行检查。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.