Skip to content

Decode QRCode in .NET6 #456

Answered by micjahn
nayankariya asked this question in Q&A
Oct 14, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

@Woetoo is right.
The .Net Framework until version 4.8 contains the implementation of System.Drawing.Bitmap. The default implementations of the BarcodeReader and BarcodeWriter classes use that type. So your sample works only with the main ZXing.Net package until version 4.8 of the .Net framework.
.Net Standard, .Net Core and .Net 5.0 and above change significantly. The core framework doesn't include a Bitmap class.
So the ZXing.Net base package for the framework versions doesn't contain a reader or writer class for Bitmaps.
The implementations for specific image manipulation libraries are now in separate packages (ZXing.Net.Bindings.*).
You have to select the package which fit your needs.…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@nayankariya
Comment options

Answer selected by nayankariya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants