C#. Identcode Generator Size Setting Tutorial
sample source code to generate linear Identcode images and adjust barcode size in C# .NET
- Easy to create Identcode barcodes in .NET applications using Visual C# class library
- Completely written in C#.NET for .NET 2.0/3.0/4.0
- Easy to control, modify Identcode barcode using 50+ barcode settings provided
- Show or hide Identcode human-readable characters with customize margin, color and font style
- Minimum Identcode knowledge with complete developer guide in C#.NET
- Simple to change the proportion of narrow bar and wide bar in Identcode barcodes
- Mature Identcode barcode generating dll with royalty-free and perpetual developer license
- Tutorial for Identcode Image Setting in Visual C#.NET
- Tutorial for Identcode Data Encoding in Visual C#.NET
Identcode, also known as German Postal 2 of 5 Identcode, Deutsche Post Identcode Barcode, is a 14-digit bar code of the postal carrier cooperation with information about the recipient.
How to generate, print barcode using .NET, Java sdk library control with example project source code free download:
Identcode Structure
Identcode Image Width Related Settings
W: the barcode width of Identcode. Please see BarCodeWidth.
X: the width of a module bar. Please see X.
Q: the width of the quiet zone. Please see Left & Right Margin.
Identcode Image Height Related Settings
H: the barcode height of Identcode. Please see BarCodeHeight.
Y: the height of a module bar. Please see Y.
N: the wide bar to narrow bar ratio; from 2.0 to 3.0, inclusive. Please see N.
Top & Bottom Margin: the height of the top & bottom margin. Please see Top & Bottom Margin.
Text Margin: the space between image bar and text. Please see TextMargin.
Text Font: the font style of human-readable text. Please see TextFont.
Setting Identcode Barcode Size in C#
C# Identcode barcode provides a set of barcode size settings to specify you Identcode barcodes. Please download C# barcode component and install, copy those following code to your Visual Studio:
Linear barcode = new Linear();
barcode.Type = BarcodeType.IDENTCODE;
barcode.Data = "12345678901";
Modify your Identcode 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# Identcode barcode provides 3 options: Pixel, Cm, and Inch. The default is Pixel.
barcode.UOM = UnitOfMeasure.PIXEL;
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 Identcode barcode image width. The default in C# Identcode barcode is 0 (float).
BarcodeHeight is the Identcode barcode image height. The default in C# Identcode barcode is 0 (float).
barcode.BarcodeWidth = 0;
barcode.BarcodeHeight = 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 Identcode barcode image.
Barcode Margin
BarcodeMargin is the white zone around the Identcode symbol. C# Identcode 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;
barcode.BottomMargin = 3;
barcode.LeftMargin = 1;
barcode.RightMargin = 1;
X & Y
X is the width of barcode bar module (narrow bar). The default in C# Identcode barcode is 1 (float).
Y is the height of barcode bar module. The default in C# Identcode barcode is 60 (float).
barcode.X = 2;
barcode.Y = 80;
Text Margin & Font
TextMargin is the space between barcode and barcode data text. The default in C# Identcode barcode is 6 (float).
TextFont is the font style of human-readable text. The default in C# Identcode barcode is new Font ("Arial", 9f, FontStyle.Regular).
barcode.TextMargin = 9;
barcode.TextFont = new Font("Arial", 20f, FontStyle.Regular);