BizCode Barcode 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 128 Size in C#
C#.NET Code 128 Generator is a mature and powerful barcode generating class library that can be easily embedded in C#.NET Winform, ASP.NET Web forms, C#.NET Crystal Report, C#.NET SSRS and other Visual C#.NET applications.
C#.NET Code 128 Generator provides C#.NET code for Code 128 generation. Users are allowed to set size unit for the Code 128 barcode image and djust Code-128 image size, the X dimension, wide to narrow ratio, barcode height and other properties to suit your needs. More Code 128 sample codings, please link to:
Code 128 Size Related Properties

Barcode Resolution

Users may change Code 128 barcode images resolution in DPI using Resolution property, which specifies the number of dots that a printer or device (like a monitor) can display per linear inch.

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 128 barcode using QuietMargin related property, including TopMargin, BottomMargin, RightMargin and LeftMargin.

Bar Width & Height

Users may quickly change Code 128 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 128 barcode using BarcodeWidth and BarcodeHeight in accordance with users' needs.
Customize Code 128 Barcode Sizes in C#.NET
If you want to adjust Code 128 image size in C#.NET, be sure that you have installed:
Customize Code 128 Barcode Size in C#.NET
Copy those following code onto your C#.NET projects:
using BusinessRefinery.Barcode;

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

barcode.drawBarcode2SizeFile("c:/code-128-csharp.gif");
Change Code 128 Barcode Unit Measuirement
BarcodUnit default value in Barcode 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;
Change Code 128 Resolution in DPI
Resolution default value in Barcode Generator for .NET Ultimate is 72 dpi.

Copy those following code to change your resolution:
barcode.Resolution = 104;
Adjust Code 128 Bar Width and Height
BarWidth and BarHeight default value in Barcode 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 128 Barcode Width & Height
BarcodeWidth and BarcodeHeight default value in Barcode 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 128 Barcode Quiet Margin
BottomMargin, TopMargin , LeftMargin and RightMargin default value in Barcode 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;