C#. Code 11 Generator Image Setting Tutorial
sample source code to generate linear Code 11 in png, jpeg, etc. image formats in C# .NET
Code 11, known as Code11, USD-8, USD8, is a high-density numeric-only linear barcode symbology.
C# Code 11 is barcode generation dill for .NET programming. It can easily generate Code 11 images in various .NET platforms, such as ASP.NET barcode generator web control, .NET Winforms barcode generator control and Reporting service barcode generation component. Various image formats, image resolution, image rotation properties allows for easy integration. For example, image formats can be adjusted among tiff, bmp, png, gif and jpeg.
OnBarcode C# Barcode Generator is designed to generate, create Code 11 and other linear & 2d barcodes in Microsoft Word.
Here are some more tutorials for C# Code 11 generation concerning data encoding and size setting.
How to generate, print barcode using .NET, Java sdk library control with example project source code free download:
C#.NET Code 11 Image Format Setting
C# .NET Code 11 image format setting supports 5 image formats during generating Code 11 in C# programming:
Linear code11 = new Linear();
code11.Type = BarcodeType.CODE11;
code11.Data = "1234567";
Generating Code 11 in PNG Format
You may set the PNG format to generate Code 11 images in C#.NET Class & console application:
code11.Format = ImageFormat.Png;
code11.drawBarcode("c:\Code 11.png");
Creating Code 11 in JPEG Format
You may set the JEPG format to generate Code 11 images in C# ASP.NET web projects:
code11.Format = ImageFormat.Jpeg;
code11.drawBarcode("c:\Code 11.jpeg");
Drawing Code 11 in Gif Format
You may set the GIF format to generate Code 11 images in C#.NET Windows Forms programming:
code11.Format = ImageFormat.Gif;
code11.drawBarcode("c:\Code 11.gif");
Creating Code 11 in Tiff Format
You may set the TIFF format to generate Code 11 images in SQL Server Reporting Service (SSRS) & Crystal Reports:
code11.Format = ImageFormat.Tiff;
code11.drawBarcode("c:\Code 11.tiff");
Creating Code 11 in BMP Format
You may set the BMP format to generate Code 11 images in C# class.:
code11.Format = ImageFormat.Bmp;
code11.drawBarcode("c:\Code 11.bmp");
C#.NET Code 11 Image Rotation Setting
C# .NET Code 11 image rotation setting supports rotating the generated Code 11 image with 0, 90, 180, 270 degrees in C# projects:
Linear code11 = new Linear();
code11.Type = BarcodeType.CODE11;
code11.Data = "1234567";
code11.Rotate = Rotate.Rotate180;
C#.NET Code 11 Image Resolution Setting
C# .NET Code 11 image resolution setting allows setting the resolution for the created image in C# programming:
Linear code11 = new Linear();
code11.Type = BarcodeType.CODE11;
code11.Data = "856-86025";
code11.Resolution = 96;
C#.NET Code 11 Image Color Setting
C# .NET Code 11 image color can be easily integrated with changing the text color, background color and bar color when generating Code 11 in C# class:
Linear code11 = new Linear();
code11.Type = BarcodeType.CODE11;
code11.Data = "87654";
code11.BackColor = Color.Red;
code11.ForeColor = Color.Black;
code11.TextColor = Color.Blue;
C#.NET Code 11 Bar Alignment Setting
Bar Alignment property are available for C#.NET Code 11 image setting:
Linear code11 = new Linear();
code11.Type = BarcodeType.CODE11;
code11.Data = "111111";
code11.BarcodeWidth=400;
code11.BarAlignment = AlignmentHori.Right;
When the set image width is larger than the minimum image width, Bar Alignment property can set the extra space on the left, center and right side.
|