You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have made some local modifications on the source in src/ZXing.Net.Mobile/MonoTouch/ZXingScannerView.cs:255 (Master-Branch 2013-06-21 08:51). Please see my comments [schmittch Mod 2013-07-09] below.
/* ZXingScannerView.cs:254 ... */varbarcodeReader=new BarcodeReader(null,(img)=>{varsrc=new RGBLuminanceSource(img);//, bmp.Width, bmp.Height);#iffalse/* [schmittch Mod 2013-07-09]: UIDeviceOrientation has more cases * (Unknown, Portrait, PortraitUpsideDown, LandscapeLeft, LandscapeRight, FaceUp, FaceDown) * than for the algorithem are interesting. ... *///Don't try and rotate properly if we're autorotating anywayif(options.AutoRotate.HasValue && options.AutoRotate.Value)returnsrc;switch(UIDevice.CurrentDevice.Orientation){case UIDeviceOrientation.Portrait:return src.rotateCounterClockwise().rotateCounterClockwise().rotateCounterClockwise();case UIDeviceOrientation.PortraitUpsideDown:return src.rotateCounterClockwise().rotateCounterClockwise().rotateCounterClockwise();case UIDeviceOrientation.LandscapeLeft:returnsrc;case UIDeviceOrientation.LandscapeRight:returnsrc;}returnsrc;#else/* [schmittch Mod 2013-07-09]: ... Therefore, UIInterfaceOrientation should be used to avoid undefined states. *///Don't try and rotate properly if we're autorotating anywayif(options.AutoRotate.HasValue && options.AutoRotate.Value){returnsrc;}else{switch(UIApplication.SharedApplication.StatusBarOrientation){case UIInterfaceOrientation.Portrait:return src.rotateCounterClockwise().rotateCounterClockwise().rotateCounterClockwise();case UIInterfaceOrientation.PortraitUpsideDown:return src.rotateCounterClockwise().rotateCounterClockwise().rotateCounterClockwise();default:returnsrc;}}#endif},null,null);//(p, w, h, f) => new RGBLuminanceSource(p, w, h, RGBLuminanceSource.BitmapFormat.Unknown));/* ... */
Otherwise, a great library!
The text was updated successfully, but these errors were encountered:
I have made some local modifications on the source in src/ZXing.Net.Mobile/MonoTouch/ZXingScannerView.cs:255 (Master-Branch 2013-06-21 08:51). Please see my comments [schmittch Mod 2013-07-09] below.
Otherwise, a great library!
The text was updated successfully, but these errors were encountered: