micjahn / ZXing.Net

.Net port of the original java-based barcode reader and generator library zxing
Apache License 2.0
2.73k stars 665 forks source link

ZXing.ImageSharp generates barcode and cannot generate the number below #484

Open murongqingsi opened 1 year ago

murongqingsi commented 1 year ago

image var barcodeFormatType = (BarcodeFormat)Enum.Parse(typeof(BarcodeFormat), barcodeFormat); var writer = new ZXing.ImageSharp.BarcodeWriter<Rgba32>(); writer.Format = barcodeFormatType; var Options = new QrCodeEncodingOptions { //DisableECI = true, CharacterSet = "UTF-8", Width = width, Height = height, Margin = 2, PureBarcode=false, }; writer.Options = Options; var image = writer.Write(value); image.Save(pathUrl);

micjahn commented 1 year ago

That's right. The renderer based on ImageSharp doesn't support it. Perhaps you or someone else can provide a pull request which adds the functionality.