QRCode to Image

Posted by: skm.mas on 17 October 2022, 1:33 am EST

    • Post Options:
    • Link

    Posted 17 October 2022, 1:33 am EST

    Hi, How can I convert QRCode to Image in WinForms

  • Posted 17 October 2022, 2:12 am EST

    Hi,

    To achieve this requirement, you can invoke Save() method of the Image of Barcode.(See code snippet)

      SaveFileDialog saveFileDialog = new SaveFileDialog();
                saveFileDialog.Filter = "Png Image (.png)|*.png|JPEG Image (.jpeg)|*.jpeg|Bitmap Image (.bmp)|*.bmp|Gif Image (.gif)|*.gif|Tiff Image (.tiff)|*.tiff|Wmf Image (.wmf)|*.wmf"; ;
                if (saveFileDialog.ShowDialog() == DialogResult.OK)
                {
                    switch(saveFileDialog.FilterIndex)
                    {
                        case 1:
                            c1BarCode1.Image.Save(saveFileDialog.FileName,ImageFormat.Png);
                            break;
                        case 2:
                            c1BarCode1.Image.Save(saveFileDialog.FileName, ImageFormat.Jpeg);
                            break;
                        case 3:
                            c1BarCode1.Image.Save(saveFileDialog.FileName, ImageFormat.Bmp);
                            break;
                        case 4:
                            c1BarCode1.Image.Save(saveFileDialog.FileName, ImageFormat.Gif);
                            break;
                        case 5:
                            c1BarCode1.Image.Save(saveFileDialog.FileName, ImageFormat.Tiff);
                            break;
                        case 6:
                            c1BarCode1.Image.Save(saveFileDialog.FileName, ImageFormat.Wmf);
                            break;
                    }    

    Please refer the attached sample for the same: QRCodeImage.zip

    Best Regards,

    Nitin

  • Posted 17 October 2022, 6:49 am EST

    Thanks,

    Can we do it for signedQRCode also?

  • Posted 18 October 2022, 4:51 am EST

    Hi,

    Could you please confirm how you are creating a Signed-QRCode? If you have your own encryption or using another API to create a Signed QRCode then please inform us.

    And we are sure, that the QRCode generated through C1 can be save as Image.

    Best Regards,

    Nitin

  • Posted 19 October 2022, 1:41 am EST

    Signed QRCode from Indian Govt. e-invoice

  • Posted 19 October 2022, 7:02 am EST

    Hi,

    We have created a new Support ticket for you. Now we will continue this thread to the new support thread.

    You can refer here for the same: https://www.grapecity.com/my-account/my-support/case/f0b605ba-9c4f-ed11-bba2-00224827e5da

    Best Regards,

    Nitin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels