With the flexible methods and rich properties, there is no difficult to encode EAN-13 barcode for you.
Add following C# code to your .NET project, a perfect EAN-13 barcode image is coming to you.
using System; using System.Drawing; using System.Drawing.Imaging; usingPQScan.BarcodeCreator; namespaceEAN13GeneratorInCSharp { classProgram { staticvoid Main(string[] args) { //Create an instance of PQScan.BarcodeCreator.Barcodeobject. Barcode ean13 = new Barcode(); //Set barcode date to encode ean13.Data = "12345678901"; //Set barcode type ean13.BarType = BarCodeType.EAN13; //Set barcode image width ean13.Width = 200; //Set barcode image height ean13.Height = 100; //Set 1d barcode human-readable text to display ean13.ShowText = true; //Set barcode image foregroud color ean13.BarcodeColor = Color.Black; //Set barcode image back ground color ean13.BackgroundColor = Color.White; //Set barcode image format ean13.PictureFormat = ImageFormat.Tiff; //Save barcode image to file ean13.CreateBarcode("ean13-csharp.tiff"); } } }