• Completely run in C#.NET and easily integrate into any C#.NET applications
  • Default value are defined automatically at the beginning of the bar code generation
  • Provide gif, png, jpeg, tiff, bmp etc as the image file format to save Code 2 of 5 barcode
  • Simple to change and set Code 2 of 5 image rotation, resolution and color
  • Display Code 2 of 5 human-readable text and checksum digit or not
  • Simple to change the proportion of narrow bar and wide bar in Code 2 of 5 barcodes
  • Easy-to use, comprehensive barcode generator for Code 2 of 5 in C#.NET
Setting Code 2 of 5 Barcode Image in C#.NET
Those following properties may influence Code 2 of 5 barcode width: (a), barcode rotation; (b), barcode resolution; (c), image format; (d), human-readable text; (e) image color; and (f), bar alignment.

Download BusinessRefinery.com C#.NET Code 2 of 5 and unzip; then add BusinessRefinery.Barcode.Win.dll or BusinessRefinery.Barcode.Web.dll to your .NET project reference; copy those C# sample code onto your Visual Studio:
     using BusinessRefinery.Barcode;

     Linear barcode = new Linear();
     barcode.Symbology = Symbology.CODE2OF5;
     barcode.Code = "9876543210";

(a) Barcode rotation

Change Code 2 of 5 barcode rotation using Rotate property in BusinessRefinery.com C#.NET Code 2 of 5.
     barcode.Rotate = Rotate.Rotate0;

(b) Barcode resolution

Manage Code 2 of 5 barcode resolution using Resolution property in BusinessRefinery.com C#.NET Code 2 of 5.
     barcode.Resolutin = 72;

(c) Image Formats

Save the barcode images to most of the popular image formats using drawBarcode2ImageFile property in BusinessRefinery.com C#.NET
Draw Code 2 of 5 barcode image into C#.NET Graphics, Stream & Bitmap objects.
     barcode.drawBarcode2Stream("Stream object");
     barcode.drawBarcodeOnGraphics("Graphics object");

(d) Human-readable Text

Display or hide Code 2 of 5 human-readable text using DisplayText property.
     barcode.DisplayText = true;
Completely control over the appearance of the human-readable text in the Code 2 of 5 barcode image using TextFont properties.
     barcode.TextFont = new FontStyle("Arial", Font.PLAIN, 11); 

(e) Image Color

Colorize any part of the Code 2 of 5 barcode image, including default white and black. Change Code 2 of 5 foreground color using ForeColor property.
     barcode.ForeColor = BusinessRefinery.Barcode.Color.Green;
Set Code 2 of 5 background color using BackColor properties.
     barcode.BackColor = BusinessRefinery.Barcode.Color.White;
Print Code 2 of 5 with colorized human-readable text using TextColor properties.
     barcode.TextColor = BusinessRefinery.Barcode.Color.Pink;

(f) Bar Alignment

Change Code 2 of 5 barcode horizontal alignment inside the image using BarAlignment property.
     barcode.BarAlignment = 2;

Quick Links