barcode-java icon indicating copy to clipboard operation
barcode-java copied to clipboard

allow for customizable margin (feature request)

Open teicher opened this issue 4 years ago • 3 comments

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)

teicher avatar Jul 07 '21 15:07 teicher

Would you envision this to work like Android applications and margin be applied outside the specified bounds for drawing and then padding be internal?

barnhill avatar Apr 18 '22 00:04 barnhill

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(...)

teicher avatar Apr 23 '22 17:04 teicher