- Home
- Products
- Integration
- Tutorial
- Barcode FAQ
- Purchase
- Company
|
Setting QR Code Barcode Size in C#Generating and Scanning QR Code BarcodesOnBarcode provides comprehensive QR Code barcode generator and scanner components for Java, .NET, Android, iOS developments and several reporting applications.QR Code Generator Components QR Code Scanner Components QR Code Generator & Scanner Software QR Code Structure
Setting QR Code Barcode Size in C#Basic information you should know
QR Code images sizes range from Version 1 to Version 40 and the image size is determined as long as the image version and module size are determined.
As for QR Code image version, it is decided by the amount of your input data. And the maximum data capacity for each QR Code symbol version is specified in ISO/IEC 18004:2006.
The QR Code barcode width, W (measured in pixel), including quiet zone, can be computed from the following expression:
Three Situations for Setting QR Code Barcode Size in C#
Setting QR Code barcode size in C# QR Code Generation Components may have three situations:
Situation 1:
If you need to create a QR Code with a minimum X, the following steps should be adopted:
Situation 2:
If you need to create a QR Code with fixed barcode image width (W) and height (H), also try to draw maximum barcode module (X) as possible, the steps below should be adopted:
Situation 3:
If you need to create a QR Code with minimum X, fixed barcode image width (W) and height (H), the following steps should be adopted:
Note that, there will be a minimum barcode image width and height defined by QR Code ISO specification as long as you set the bar module (X) value.
QR Code minimum barcode image width (W min) is:
Thereby, if your BarcodeWidth value is less than the minimum barcode width, the barcode generator component will reset BarcodeWidth value to the minimum barcode width value.
For instance, you set in C# QR Code generator: Now your BarcodeWidth setting is 100 pixel, which is less than the minimum barcode width (126 pixel), the component generated QR Code image will be like this. If your BarcodeWidth setting is 150 pixel, which is larger than the minimum barcode width (126 pixel), the generated QR Code image will be like below. |