# Micro QR Code Size Setting Instruction

How to generate, print barcode using .NET, Java sdk library control with example project source code free download:

## Micro QR Code Structure

• W : the width of Micro QR Code image (including quiet zone).
• H : the height of Micro QR Code image (including quiet zone)
• X : the width of Micro QR Code module.
• Q : the width of the quiet zone; Q = 2X.

## Micro QR Code Image Size

As for Micro QR Code images, there are four sizes, ranging from Version M1 to Version M4. And the size commences with 11X11 modules up to 17X17 modules (Version M1 to M4), excluding quiet zone. Each higher version number comprises 2 modules per side.

• V : the version of Micro QR Code, ranging Version M1 to Version M4.

The Micro QR Code image width, W (measured in pixel), including quiet zone, can be calculated from the following expression:

W = [ 8 + ( 2V + 1) ] X + 2Q

W is equal to the value of Micro QR Code image height (H).

Then the minimum value of W can be computed as below:

V min = 1 , X min = 1 , Q = 2X .
W min = [ 8 + ( 2V + 1 ) ] X + 2Q
= [ 8 + 3 ] X + 2 * 2X
= 11X + 4X
= 15X
= 15 pixel

Therefore, Micro QR Code image size is determined when the image version and module size are determined. The following steps can be adopted to get Micro QR Code version and compute the image size.

• Make certain the data to be encoded.
• Specify the error correction level of Micro QR Code.
• Refer to Micro QR Code Version and Maximum Data Capacity Table and select the smallest version which accommodates your input data.
• Calculate the QR Code image width (W) from the following expression:

W = [ 8 + ( 2V + 1) ] X + 2Q

W is equal to the value of QR Code image height (H).

For example, you want to encode 15 alphanumeric characters into a Micro QR Code:

• Set the error correction level to be "M".
• In the reference table, the Version M4 with level M is capable of encoding 15 (up to 18) alphanumeric characters.
• Then, the image width including quiet zone can be calculated as follows:
• Calculate the QR Code image width (W) from the following expression:

W = [ 8 + ( 2V + 1) ] X + 2Q       // V = 4
= [ 8 + 9 ] X + 2Q       // Q = 2X
= 17X + 2 * 2X
= 17X + 4X
= 21X

W min = 21X       // X = 1
= 21 pixel

H min = 21 pixel