Original readme can be found here. This is fork of the QRCode created by StefH using the ImageSharp instead of System.Drawing.Common. System.Drawing.Common is a windows only library now see here, the changes allows the QRDecoder to use one of the more modern cross platform 2d graphics library ImageSharp.
Name | NuGet |
---|---|
QRCodeDecoder-ImageSharp |
[NuGet] |
...
services.AddQRCodeDecoder();
...
var decoder = _serviceProvider.GetRequiredService<QRDecoder>();
byte[][] data = decoder.ImageDecoder(sourceBitmap);
var data = QRDecoder.ByteArrayToString(data[0]);