mirror of
https://github.com/CatimaLoyalty/Android.git
synced 2026-01-01 11:37:55 -05:00
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.