Skip to content
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

Extra blank space on the right and bottom in the DataMatrix barcode bitmap image #19

Closed
sclcwwl opened this issue May 26, 2017 · 2 comments

Comments

@sclcwwl
Copy link

sclcwwl commented May 26, 2017

I run the windowsformdemo in the project zxing.vs2015, and found there is Extra blank space on the right and bottom in the DataMatrix barcode bitmap image when set the height and width of the barcode.

Is there a way to avoid this , because the image is too small (height = 12 or 14) when using the default height and width?

@micjahn
Copy link
Owner

micjahn commented May 26, 2017

You have to use a height and width which are an integer multiple of the smallest possible datamatrix barcode.
Alternatively you use the value 1 for width and height and scale the image yourself. The renderer doesn't support anti-aliasing which leads to white borders if the width and height are not an integer multiple.

@micjahn micjahn closed this as completed May 26, 2017
@sclcwwl
Copy link
Author

sclcwwl commented Jun 5, 2017

OK, I set width and height to 84, and it works well until now.
Thank you for your quick response @micjahn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants