quanzhou
2025-08-29 bd125c728f48a21729fbc12122b5c340059a9d13
src/Bro.M141.Process/UI/UIPrinter.cs
@@ -149,16 +149,16 @@
                //g.DrawString("厂商", font, brush, (startX + 20) * Scale, (startY + 5) * Scale);//
                //g.DrawString("嘉彰科技", font2, brush, (startX + 140) * Scale, (startY + 4) * Scale);
                BarcodeWriter writer = new BarcodeWriter();
                writer.Format = BarcodeFormat.QR_CODE;
                QrCodeEncodingOptions options = new QrCodeEncodingOptions()
                {
                    DisableECI = true,//设置内容编码
                    CharacterSet = "UTF-8",  //设置二维码的宽度和高度
                    Width = 123,
                    Height = 123,
                    Margin = 1//设置二维码的边距,单位不是固定像素
                };
                //BarcodeWriter writer = new BarcodeWriter();
                //writer.Format = BarcodeFormat.QR_CODE;
                //QrCodeEncodingOptions options = new QrCodeEncodingOptions()
                //{
                //    DisableECI = true,//设置内容编码
                //    CharacterSet = "UTF-8",  //设置二维码的宽度和高度
                //    Width = 123,
                //    Height = 123,
                //    Margin = 1//设置二维码的边距,单位不是固定像素
                //};
                ////第二行数据
                //g.DrawRectangle(p, startX * Scale, (startY + 20) * Scale, 70 * Scale, 20 * Scale);