barcode-java
barcode-java copied to clipboard
allow for customizable margin (feature request)
when the barcode is embedded on some background, the scanner gun will need some "peace space" (white border) in order to recognize the barcode regardless of the background. this should be an option to have. could look like
b.setMargin(10)
or even
b.setMargin(10,10,10,15)
Would you envision this to work like Android applications and margin be applied outside the specified bounds for drawing and then padding be internal?
Any way would be fine as long as the behaviour is deterministic and documented ;-)
If the margin increases the overall image size, it could also be called setAdditionalMargin(...)