ITF14 Creator for .NET WinForms Applications
|
ITF-14 information:
|
![]() |
Development Environment
1. Right click .NET Visual Studio Toolbox, select menu Choose Items... 2. In "Choose Toolbox Items" form, click button "Browse...", and select dll Avapose.Barcode.Encoder.WinForms.dll |
Generate, print ITF-14 barcodes with C# class
|
Generate, print ITF-14 barcodes with VB.NET class Dim barcode As Avapose.Barcode.Encoder.ClassLibrary.BarCode = New Avapose.Barcode.Encoder.ClassLibrary.Barcode barcode.Symbology = Avapose.Barcode.Encoder.ClassLibrary.Symbology.ITF14 barcode.Data = "6515651565156" barcode.BarcodeImageWidth = 175 barcode.BarcodeImageHeight = 50 barcode.X = 1 barcode.Y = 60 barcode.AutoResize = True barcode.draw("...\itf14_vb.gif") |
Category : Basic
Properties | Value |
Comments |
|
Type | Default | ||
Data | string | "128" |
According to ITF-14 specification, this generator encodes 13 digits only, excluding the last checksum digit. |
Symbology |
Symbology |
Code128Auto | Linear barcode symbology type. Set the value to Symbology.ITF14 |
EnableCheckSum |
bool |
false | EnableCheckSum property is not applied here. .NET Barcode will always add a check character in the last digit. |
Category : ITF-14 Special
Properties | Value | Comments |
|
Type | Default | ||
N |
float |
2.0f | Wide/narrow ratio ranges from 2.0 to 3.0, the default is 2.0. |
BearerBarLeft |
float | 1.0f | The value of the vertical bearer bars (left bars). Valid values are 0-10 which are a multiple of X. |
BearerBarStyle |
int | 0 | Bearer bar feature |
BearerBarTop |
float | 1.0f | The value of the horizontal bearer bars (top bars). Valid values are 0-10 which are a multiple of X. |
Category : Barcode Size Related
Properties | Value | Comments |
|
Type | Default | ||
AutoResize
|
bool
|
false | Set AutoResize property to true, the generated barcode image can be resized automatically. |
UOM |
UnitOfMeasure |
Pixel | Unit of meature for all size related settings in the library. Valid values:
|
X | float | 2 | Bar module (narrow bar) width of barcode, default is 2 pixel |
Y | float | 75 | Bar module height of barcode, default is 75 pixel |
BarcodeImageWidth | float | 0 | Barcode image width. Be sure barcodeWidth setting is larger than the barcode required minimum width, otherwisethe library will automatically reset to barcode minimum width. |
BarcodeImageHeight | float | 0 | Barcode image height. Be sure barcodeHeight setting is larger than the barcode required minimum height, otherwise the library will automatically reset to barcode minimum height. |
MarginLeft | float | 0 | Left margin size of barcode image. |
MarginRight | float | 0 | Right margin size of barcode image. |
MarginTop | float | 0 | Top margin size of barcode image. |
MarginBottom | float | 0 | Bottom margin size of barcode image. |
DPI | int | 72 | Barcode image resolution in DPI (Dots per inch). |
Angle | Angle | Degree0 | Barcode image orientation can be rotated in this library. Valid values:
|
Category : Barcode Colors
Properties | Value | Comments |
||
Type | Default | |||
BackgroundColor |
Color
|
white | Set BackgroundColor property to change background color of barcode image |
|
ForegroundColor |
Color |
black |
|
Category : Font Style
Properties | Value | Comments |
|
Type | Default | ||
ShowText |
bool |
true |
|
TextFont
|
Font |
new Font ("Arial",10pt, FontStyle.Regular) |
Set TextFont property to change font style of barcode text . |
TextMargin |
float |
6 | Set TextMargin property to change space between barcode and barcode data text, default is 6 pixel |
ShowCheckSum Char |
bool | true | True: show checksum digit character; False: hide checksum digit character. |
TextColor | Color | black | Set TextColorproperty to change barcode text color |
Category : Image Format
Properties | Value | Comments |
|
Type | Default | ||
ImageFormat |
Format |
gif | Barcode image encoding type,including Jpeg, Png, Tiff, Bmp, Emf, Exif, Icon and Memory Bmp. |
Methods
// create and draw to image file
public void draw(string filename)// create, draw, paint barcode on Graphics object
public void draw(Graphics graphics)// create, draw, paint barcode on Bitmap object
public Bitmap draw()// create, draw, paint barcodeon Stream object
public void draw(Stream fileStream)// create, draw, paint barcode on byte[] object
public byte[] drawOutputAsBytes()