- Home
- Products
- Integration
- Tutorial
- Barcode FAQ
- Purchase
- Company
C#. Code 39 Generator Size Setting Tutorialsample source code to generate linear Code 39 images and adjust barcode size in C# .NET
Code 39, also known as Alpha39, Code 3 of 9, Code 3/9, Type 39, USS Code 39, or USD-3, is the first alpha-numeric linear barcode symbology used world-wide. Code 39 Structure
W: the barcode width of Code 39. Please see BarCodeWidth.Code 39 Image Height Related Settings H: the barcode height of Code 39. Please see BarCodeHeight. Setting Code 39 Barcode Size in C#
C# Code 39 barcode provides a set of barcode size settings to specify you Code 39 barcodes. Please download C# barcode component and install, copy those following code to your Visual Studio: Linear barcode = new Linear();Modify your Code 39 barcodes by setting those following properties: UOM
UOM is short for Unit of Measure, which is the unit of measure for all size related settings in the library. C# Code 39 barcode provides 3 options: Pixel, Cm, and Inch. The default is Pixel. barcode.UOM = UnitOfMeasure.PIXEL; I
I is the space between 2 characters in code 39. It is a multiple of X. The default is 1.0f (float). barcode.I = 1.5f; N
N is the proportion of wide bar and the narrow. It ranges from 2.0 to 3.0. The default is 2.0f (float). barcode.N = 2.5f; Barcode Width & Height
BarcodeWidth is the Code 39 barcode image width. The default in C# Code 39 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 Code 39 barcode image. Barcode Margin
BarcodeMargin is the white zone around the Code 39 symbol. C# Code 39 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 & Y
X is the width of barcode bar module (narrow bar). The default in C# Code 39 barcode is 1 (float). barcode.X = 2; Text Margin & Font
TextMargin is the space between barcode and barcode data text. The default in C# Code 39 barcode is 6 (float). barcode.TextMargin = 9; |