Cannot convert type 'Windows.UI.Xaml.Media.Imaging.WriteableBitmap' to 'ZXing.LuminanceSource' on UWP : I'm trying to use ZXing on UWP project and I have read a lots of tutorials, that I can't get to work. The last tutorial said that I should use WritableBitmap, 'cos Bitmap is not awailable in UWP.

However it says to me

> Cannot convert type 'Windows.UI.Xaml.Media.Imaging.WriteableBitmap' to
> 'ZXing.LuminanceSource'

    public class QrCodeHelpers
    {
        public static void ReadQrCodeFromBitmap(WriteableBitmap image)
        {
            IBarcodeReader reader = new BarcodeReader();
            var generic = new BarcodeReaderGeneric<WriteableBitmap>();

            // detect and decode the barcode inside the bitmap
            var result = reader.Decode((ZXing.LuminanceSource)image);
            // do something with the result
        }
    }

How could I get this work? I have an image from MediaCapture and it would be fine to use that and get the QR code's data. Any solution?
