Decode QR
-
Hi, here i am tring to decode my QR using ZXing but i am not able to decode it. Can any one help me. Thanks in advance..... public static String readQRImage(Bitmap bMap) { int[] intArray = new int[bMap.Width * bMap.Height]; bMap.GetPixels(intArray, 0, bMap.Width, 0, 0, bMap.Width,bMap.Height); byte[] bmpresult = intArray.SelectMany(v => BitConverter.GetBytes(v)).ToArray(); LuminanceSource source = new RGBLuminanceSource(bmpresult, bMap.Width, bMap.Height); BinaryBitmap bitmap = new BinaryBitmap(new HybridBinarizer(source)); Reader reader = new MultiFormatReader(); ZXing.Result result = reader.decode(bitmap); return result; } here result is getting null value. for encode i have used ZXing.Mobile.BarcodeWriter writer = new ZXing.Mobile.BarcodeWriter