- Home
- Products
- Integration
- Tutorial
- Barcode FAQ
- Purchase
- Company
C#. QR Code Generator Size Setting Tutorialsample source code to generate 2D QR Code images and adjust barcode size in C# .NET
QR Code, also known as Denso Barcode, QRCode, Quick Response Code, is a kind of 2D (two dimensional) barcode widely used today. QR Code Structure
W: the width of QR Code image (including quiet zone). Please see BarCodeWidth.QR Code Image Height Related Settings H: the height of QR Code image (including quiet zone). Please see BarCodeHeight. Setting QR Code Barcode Size in C#
C# QR Code barcode provides a set of barcode size settings to specify you QR Code barcodes. Please download C# barcode component and install, copy those following code to your Visual Studio: QRCode barcode = new QRCode();Modify your QR Code barcodes by setting those following properties: UOM
UOM is short for Unit of Measure, which is the unit of meature for all size related settings in the library. C# QR Code barcode provides 3 options: Pixel, Cm, and Inch. The default is Pixel. barcode.UOM = UnitOfMeasure.PIXEL; QR Code Version
QRCodeVersion is the different size of QR Code. C# QR Code barcode provides 40 types version from V1 (21x21) to V40 (177X177). The default in C# QR Code barcode is QRCodeVersion.V1. barcode.QRCodeVersion = QRCodeVersion.V5; Barcode Width & Height
BarcodeWidth is the QR Code barcode image width. The default in C# QR Code barcode is 0 (float). barcode.BarcodeWidth = 0;Notice: if your setting is smaller than the barcode required minimum width and height, the library will automatically reset to barcode minimum width. Or you may enable AutoResize to automatically resize your QR Code barcode image. Barcode Margin
BarcodeMargin is the white zone around the QR Code symbol. C# QR Code barcode provides 4 options: Left Margin, Right Margin, Top Margin and Bottom Margin. The default of these four margins are 0 (float). barcode.TopMargin = 3; X
X is the width and height of barcode bar module. The default in C# QR Code barcode is 2 (float). barcode.X = 3; |