|
|
@@ -1265,9 +1265,9 @@ namespace Dongke.WinForm.Controls.InvoiceLayout
|
|
|
ops.ImageHeight = LayoutCommon.MillimeterToPixelDpi(rectangleM.Height, graphics.DpiX);
|
|
|
ops.DpiX = graphics.DpiX;
|
|
|
ops.DpiY = graphics.DpiY;
|
|
|
- //QRCodeEncodingOptions qre = new QRCodeEncodingOptions();
|
|
|
- //qre.ECLevel = QRECLevel.L;
|
|
|
- using (Image pic1 = QRCodeHelper.GetQRCodeImage(value.ToString(), ops))
|
|
|
+ QRCodeEncodingOptions qre = new QRCodeEncodingOptions();
|
|
|
+ qre.ECLevel = QRECLevel.Q;
|
|
|
+ using (Image pic1 = QRCodeHelper.GetQRCodeImage(value.ToString(), ops, qre))
|
|
|
{
|
|
|
graphics.DrawImage(pic1, rectangleM, ops.ImageRect, GraphicsUnit.Pixel);
|
|
|
}
|
|
|
@@ -1292,9 +1292,9 @@ namespace Dongke.WinForm.Controls.InvoiceLayout
|
|
|
ops.ImageHeight = LayoutCommon.MillimeterToPixelDpi(rectangleM.Height, graphics.DpiX);
|
|
|
ops.DpiX = graphics.DpiX;
|
|
|
ops.DpiY = graphics.DpiY;
|
|
|
- //QRCodeEncodingOptions qre = new QRCodeEncodingOptions();
|
|
|
- //qre.ECLevel = QRECLevel.H;
|
|
|
- pic = QRCodeHelper.GetQRCodeImage(value.ToString(), ops);
|
|
|
+ QRCodeEncodingOptions qre = new QRCodeEncodingOptions();
|
|
|
+ qre.ECLevel = QRECLevel.Q;
|
|
|
+ pic = QRCodeHelper.GetQRCodeImage(value.ToString(), ops, qre);
|
|
|
//pic.Save("C://1.png");
|
|
|
if (!isPrint)
|
|
|
{
|