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

Scale barcode height to match reduced width #126

Merged
merged 2 commits into from
Jul 13, 2017
Merged

Scale barcode height to match reduced width #126

merged 2 commits into from
Jul 13, 2017

Conversation

brarcher
Copy link
Owner

When reducing the pixel size of the width, if the height is not
scaled to match then 1D barcodes end up being squished and are
too narrow to scan. To avoid this, scale the height to match.
Then, when the barcode is loaded into a Bitmap it will scale up
to the correct size.

It was found that on a Galaxy S4 a barcode width of 400 px started
to see some blurriness, but 500 px still looked sharp. Reducing
the maximum width to 500 px.
@brarcher brarcher merged commit f4522fb into master Jul 13, 2017
@brarcher brarcher deleted the scale-barcode branch July 13, 2017 02:14
franga2000 pushed a commit to franga2000/loyalty-card-locker that referenced this pull request Feb 14, 2021
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

Successfully merging this pull request may close these issues.

1 participant