add visual feedback
This commit is contained in:
@@ -30,7 +30,7 @@ namespace Shadowsocks.View
|
||||
string qrText = ssconfig;
|
||||
QRCode code = ZXing.QrCode.Internal.Encoder.encode(qrText, ErrorCorrectionLevel.M);
|
||||
ByteMatrix m = code.Matrix;
|
||||
int blockSize = Math.Max(200 / m.Height, 1);
|
||||
int blockSize = Math.Max(pictureBox1.Height / m.Height, 1);
|
||||
Bitmap drawArea = new Bitmap((m.Width * blockSize), (m.Height * blockSize));
|
||||
using (Graphics g = Graphics.FromImage(drawArea))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user