You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By now, a fixed Quiet Zone size is 4. I edited your code to make it configurable.
And another issue.
The generated tag's width / height's value is the value specified to the constructor of class SvgQRCode, which may result in little blank margin on the right edge and the bottom edge of the image.
So I edited the method Create() of class SvgQRCode as the following:
var unitsPerModule = (int)Math.Floor(size / (double)matrix.ModuleMatrix.Count);
var modeleSize = matrix.ModuleMatrix.Count * unitsPerModule;
var svgFile = new StringBuilder(@"<svg version=""1.1"" baseProfile=""full"" width=""");
svgFile.Append(modeleSize);
svgFile.Append(@""" height=""");
svgFile.Append(modeleSize);
Now the blank edge is gone. But this results in smaller image size..
Activity
dlemstra commentedon Nov 17, 2016
I have applied your fix and pushed a new version to NuGet. Will need to figure out how to make the quiet zone configurable this weekend.