Working with QR Code Encoder and Decoder

Kmcnet 1,421 Reputation points
2022-12-09T02:20:11.2+00:00

Hello everyone and thanks for the help in advance. I am trying to use the QR decoder in this article https://www.codeproject.com/Articles/1250071/QR-Code-Encoder-and-Decoder-Csharp-Class-Library-f. My code looks like:

string fileName = @"C:\myfile.png";  
QRDecoder Decoder = new QRDecoder();  
Bitmap bitmap = new Bitmap.(fileName);            
QRCodeResult[] ResultArray = Decoder.ImageDecoder(bitmap);  

However, I receive an error "Cannot implicitly convert type 'byte[][]' to 'QRReaderFromImage.QRCodeResult". I've tried different combinations of System.Drawing.Image without success. Hoping someone has experience working with this. Any help would be appreciated.

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.