BizCode Generator for .NET Ultimate
The most robust & powerful barcode generating SDK for Microsoft .NET Framework
Quick Overviews
  • Mature barcode creating SDK
  • Support .NET 2.0/3.0/4.0
  • 100% developed in C#.NET
  • Dynamic barcodes support
  • User-defined controls provided
How to Set Code 39 Size in C#
C#.NET Code 39 Generator SDK allows users to efficiently generate Code-39 as well as Code 39 Extension barcodes in C#.NET projects, and provides safe and secure Code-39 generating component with the 100% managed code created in Visual C# .NET.
With C#.NET Code 39 Generator SDK, users may simply modify Code-39 inter-character space and accurately adjust Code-39 wide bar and narrow bar ratio. Code-39 human-readable characters can be shown or hidden with customize margin, color and font style. Here are complete developer guides for Code-39 size setting, image setting and data encoding in C#.NET:
Code 39 Size Related Properties

Bar Ratio

Users may change Code 39 and Code 39 Extension barcode size through controlling the proportion of wide bar and narrow bar using BarRatio property.

I

Users may adjust the space of two characters nearby in Code 39 and Code 39 Extension barcodes using I property.

Barcode Unit

Users may choose three different barcode unit measurements - pixel, cm and inch to measure all barcode size related properties using BarcodeUnit property.

Quiet Margin

Users may easily change the quiet zone size of generated Code 39 and Code 39 Extension barcode using QuietMargin related property, including TopMargin, BottomMargin, RightMargin and LeftMargin.

Bar Width & Height

Users may quickly change Code 39 and Code 39 Extension barcode size through setting bar width and height using BarWidth and BarHeight property.

Barcode Width & Height

Users may set the whole barcode width and height of Code 39 and Code 39 Extension barcode using BarcodeWidth and BarcodeHeight in accordance with users' needs.
Customize Code 39 Barcode Sizes in C#.NET
If you want to adjust Code 39 image size in C#.NET, be sure that you have installed:
Customize Code 39 Barcode Size in C#.NET
Copy those following code onto your C#.NET projects:
using BusinessRefinery.Barcode;

Linear barcode = new Linear();
barcode.Symbology = Symbology.CODE39;
barcode.Code = "0123456789";

barcode.drawBarcode2SizeFile("c:/code-39-csharp.gif");
Change Code 39 Barcode Unit Measuirement
BarcodUnit default value in BizCode Generator for .NET Ultimate is BarcodeUnit.PIXEL.

Copy those following code to change your unit measurement for all size related properties:
barcode.BarcodeUnit = BarcodeUnit.PIXEL;
Adjust Code 39 Barcode Inter-Character Space
I default value in BizCode Generator for .NET Ultimate is 1.0f.

Copy those following code to change your inter-character space:
barcode.I = 3;
Change Code 39 Barcode Wide Bar Vs Narrow Bar Ratio
BarRatio default value in BizCode Generator for .NET Ultimate is 2.0f.

Copy those following code to adjust bar ratio of wide bar and narrow bar:
barcode.BarRatio = 2.5;
Adjust Code 39 Bar Width and Height
BarWidth and BarHeight default value in BizCode Generator for .NET Ultimate are 3 pixel and 60 pixel.

Copy those following code to specify your module width and height:
barcode.BarHeight = 75;
barcode.BarWidth = 3;
Specify Code 39 Barcode Width & Height
BarcodeWidth and BarcodeHeight default value in BizCode Generator for .NET Ultimate are 0 respectively.

Copy those following code to specify your barcode width and height:
barcode.BarcodeHeight = 100;
barcode.BarcodeWidth = 500;
Control Code 39 Barcode Quiet Margin
BottomMargin, TopMargin , LeftMargin and RightMargin default value in BizCode Generator for .NET Ultimate is 0 respectively.

Copy those following code to change your quiet margin size:
barcode.BottomMargin = 7;
barcode.TopMargin = 7;
barcode.LeftMargin = 5;
barcode.RightMargin = 5;