public BarcodeService() { barcodeReader = new ZXing.BarcodeReader() { //AutoRotate = true, //TryInverted = true, Options = new ZXing.Common.DecodingOptions { TryHarder = true } }; //List<ZXing.BarcodeFormat> barcodeFormats = new List<ZXing.BarcodeFormat>(); //barcodeFormats.Add(ZXing.BarcodeFormat.DATA_MATRIX); //barcodeReader.Options.PossibleFormats = barcodeFormats; }