How to calculate magnification of EAN13 barcode?
In This Topic
EAN-13 barcode magnification defines its physical size, typically ranging from 80% to 200% for retail (POS), with 100% being the nominal size (around 37mm wide). Lower magnification (e.g., 80%) makes smaller barcodes (around 29.83mm wide) for tight spaces, while higher (e.g., 200%) creates larger ones for general distribution, with dimensions like bar width, height, and quiet zones scaling proportionally to the magnification factor.
If you want to calculate the magnification of EAN13 barcode, you need to do the following steps:
- Get the barcode size in pixels using the BarcodeInfoBase.Region property.
- Calculate the barcode width in inches by the following formula: width_in_pixels / image_resolution.
- Calculate the barcode width in millimeters from width in inches.
- Calculate the magnification by the following formula: width_in_millimeters / 37.