Forum Xamarin.Forms

How to save a QR code created with ZXing on device gallery folder like image?

Hi, I have created an QR code with next code and show correctly in my app but I need to export it like an image on the gallery folder device. I don't know how to do it.

barcode = new ZXingBarcodeImageView
            HorizontalOptions = LayoutOptions.FillAndExpand,
            VerticalOptions = LayoutOptions.FillAndExpand,

barcode.BarcodeFormat = ZXing.BarcodeFormat.QR_CODE;
    barcode.BarcodeOptions.Width = 500;
    barcode.BarcodeOptions.Height = 500;
    barcode.BarcodeValue = card_code;
    QRCode.Content = barcode;

Thanks in advanced.

Best Answers


  • 10Cjbellido10Cjbellido Member ✭✭

    Thank you very much. It is working on Android.

    Do you know how to do for iOS too?


  • 10Cjbellido10Cjbellido Member ✭✭

    @GauravKatdare Thank you very much. You saved my day. ;)

  • how to create dependency service?

  • Hi guys, can you share an example please? It is impossible to implement.

  • AlexPTAlexPT Member

    Hello everyone,

    The code is not working.
    I'm using:

    ZXing.Net.Mobile (2.4.1)
    ZXing.Net.Mobile.Forms (2.4.1)

    I also want save the QRCode that I'm generating/showin in my page.
    If anyone have this code working for this ZXing version, please share the code please.

    Many thanks!

Sign In or Register to comment.