-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added margins option to DataMatrixWriter & AztecWriter #60
Conversation
By default margins = 0 to match previous behavior. In case margins > 0 behavior matches QRCodeWriter margins behavior.
By default margins = 0 to match previous behavior. If margins > 0, behavior matches with QRCodeWriter margins.
Also why DataMatrixWriter removes padding if requested width and height are too small? |
The answer is that it was likely how it worked in ZXing and when I ported it over the behavior came too. It isn't an intentional choice on my part. |
So backwards compatibility, understandable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change looks good, approved pending test verification
Could you rebase on the latest head commit in the repository? There is an issue with one of my tests that fails which is corrected in the latest commit. |
Never done that before. But Github had "Sync fork" button, which seems to do the same. |
All tests pass. I'll merge this PR. Thank you for your contribution! |
this change is now in v0.6.5 on crates.io |
By default margins = 0 to match previous behavior.
If margins > 0, behavior matches QRCodeWriter margins option.