Commit fbf86b1b authored by liudong1993's avatar liudong1993

二维码修复

parent 9bb347eb
......@@ -88,7 +88,7 @@ namespace REBORN.Common.Plugin
QRCodeData codeData = generator.CreateQrCode(url, QRCodeGenerator.ECCLevel.M, true);
QRCoder.QRCode qrcode = new QRCoder.QRCode(codeData);
Bitmap icon = new Bitmap(logoPath);
Bitmap qrImage = qrcode.GetGraphic(pixel, Color.Black, Color.White, icon, 15, 6, true);
Bitmap qrImage = qrcode.GetGraphic(pixel, Color.Black, Color.White, icon, 10, 3, true);
#region 参数介绍
//GetGraphic方法参数介绍
//pixelsPerModule //生成二维码图片的像素大小 ,我这里设置的是5
......
......@@ -657,7 +657,7 @@ namespace Property.Module.FixedAssets
string logoPath = basepath + "\\ExportFile\\Branch\\Logo.png";
try
{
QRCodeHelper.Create_CodeImages("PropertyCheck|Id=" + demodel.Id, 3, logoPath, path_server, System.Drawing.Imaging.ImageFormat.Png);
QRCodeHelper.Create_CodeImages("PropertyCheck|Id=" + demodel.Id, 5, logoPath, path_server, System.Drawing.Imaging.ImageFormat.Png);
}
catch (Exception ex)
{
......@@ -743,7 +743,7 @@ namespace Property.Module.FixedAssets
string logoPath = basepath + "\\ExportFile\\Branch\\Logo.png";
try
{
QRCodeHelper.Create_CodeImages("PropertyCheck|Id=" + PropertyId, 3, logoPath, path_server, System.Drawing.Imaging.ImageFormat.Png);
QRCodeHelper.Create_CodeImages("PropertyCheck|Id=" + PropertyId, 5, logoPath, path_server, System.Drawing.Imaging.ImageFormat.Png);
}
catch (Exception ex)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment