Linear Barcode Code 39 is also known as Alpha39, Code 3 of 9, Code 3/9, Type 39, USS Code 39, or USD-3.
Compatibility: Code 39 barcodes generated by this .NET Barcode Generator SDK comply with ISO / IEC 16388 (2nd edition 2007-05-15) bar code specification.
Code 39 barcode is a linear barcode symbology developed by Dr. David Allais and Ray Stevens of Intermec in 1974. Nowadays, Code 39 is widely adopted in Non-retail environments, U.S. Government and military use and Health Industry Bar Code Council (HIBCC)).
Code 39 bar code is able to encode 43 characters: A-Z, 0-9, 7 special chars [-(Dash), $(Dollar), %(Percentage), (Space), .(Point), /(Slash), +(Plus)], and 1 start/stop characters (*).
Code 39 barcode uses asterisk character (*) as Start and Stop characters. In the Code 39 barcode text label (barcode human-readable interpretation), you
can choose to print or hide the start/stop chars.
Customize Code 39 barcode width & height using C#
You can quickly create and customize the Code 39 barcode with specified image width and height using C# Barcode library.
Set the specified image width value in pixel to property ImageWidth
Set the specified image height value in pixel to property ImageHeight
BarcodeLib C# Barcode Generator library supports multiple options to customize linear / 1d barcode text label. Here we will learn how to customize
the Code 39 barcode text
Print or hide Code 39 start / stop characters
Print or hide Code 39 check character
Print or hide Code 39 text label
Customize the Code 39 text font style, text color, and font size
Code 39 print, hide start / stop chars
You can hide the Code 39 barcode start, stop characters through property ShowStartStopChar in C# source code.
Sometimes you need hide Code 39 barcode text label to save the printing space. You can set the property ShowText to false in the C# source code using C# Barcode library.
Generated Code 39 barcode image without text label printed
Code 39 text style, color, font size
Using C# Barcode generation library, you can freely customize the printed Code 39 barcode text styles in C# application.
Set property TextFont to specify the text font family, font style. (Note: you cannot change the text size here. View the next demo code to resize Code 39 text size)
Set property TextFontColor to change the Code 39 text color in RGB.
In Code 39 barcode, you can specify the Code 39 wide bar vs narrow bar ratio (N). C# Barcode Generator library will set the N value as 2.0 by default. You can set the value from 2.0 to 3.0 inclusive.