You maybe interested: |
Barcode |
|
C#. UPC-A Generator Image Setting Tutorial
sample source code to generate linear UPC-A in png, jpeg, etc. image formats in C# .NET
UPC-A, also known as Universal Product Code version A , UPC Code, UPC Symbol, GTIN-12, GS1-12, UCC-12, is the most common and well-known barcode symbology in the United States.
C# UPC-A Generator supports adjusting the UPC-A image settings to generate high quality UPC-A images with various platforms in C# development. C# UPC-A image setting includes image color, image rotation, image format, image resolution and bar alignment properties. Besides, C# UPC-A allows other property settings, such as C# UPC-A size setting, C# UPC-A data encoding, which are just for your more professional programming.
OnBarcode C# Barcode Generator is designed to generate, create UPC-A and other linear & 2d barcodes in Microsoft Word.
Here are some more tutorials for C# UPC-A 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:
Generating UPC-A by Adjusting the Image Format in C#.NET
C# UPC-A generator is compatible with the image format setting which can supports five types of image format. They are PNG, BMP, JPEG, GIF and TIFF. You may implement the image format property to your C# .NET projects:
Linear upca = new Linear();
upca.Type = BarcodeType.UPCA;
upca.Data = "11111111111";
Generating UPC-A in PNG Format
Adjusting PNG format to generate UPC-A images in C#.NET Class & console application:
upca.Format = ImageFormat.Png;
upca.drawBarcode("c:\UPC-A.png");
Creating UPC-A with JPEG Format
Setting JEPG format to output UPC-A images in C# ASP.NET web projects:
upca.Format = ImageFormat.Jpeg;
upca.drawBarcode("c:\UPC-A.jpeg");
Drawing UPC-A in Gif Format
Customizing GIF format to generate UPC-A images in C#.NET Windows Forms programming:
upca.Format = ImageFormat.Gif;
upca.drawBarcode("c:\UPC-A.gif");
Creating UPC-A in Tiff Format
Changing TIFF format to draw UPC-A images in SQL Server Reporting Service (SSRS) & Crystal Reports:
upca.Format = ImageFormat.Tiff;
upca.drawBarcode("c:\UPC-A.tiff");
Creating UPC-A in BMP Format
Setting BMP format to create UPC-A images in C# class.:
upca.Format = ImageFormat.Bmp;
upca.drawBarcode("c:\UPC-A.bmp");
Rotating UPC-A Image for C#.NET Programming
C# .NET UPC-A image rotation setting supports rotating the generated UPC-A image with 0, 90, 180, 270 degrees in C# projects:
Linear upca = new Linear();
upca.Type = BarcodeType.UPCA;
upca.Data = "12121212121"
upca.Rotate = Rotate.Rotate180;
C#.NET UPC-A Image Resolution Setting
C# .NET UPC-A image resolution setting allows setting the resolution for the created image in C# programming:
Linear upca = new Linear();
upca.Type = BarcodeType.UPCA;
upca.Data = "45678978945";
upca.Resolution = 100;
C#.NET UPC-A Image Color Setting
C# .NET UPC-A image color can be easily integrated with changing the text color, background color and bar color when generating UPC-A in C# class:
Linear upca = new Linear();
upca.Type = BarcodeType.UPCA;
upca.Data = "32165498714";
upca.BackColor = Color.Black;
upca.ForeColor = Color.White;
upca.TextColor = Color.Yellow;
C#.NET UPC-A Bar Alignment Setting
Besides image format, image resolution, image rotation and image color, UPC-A Generator for C# image setting properties can set bar alignment.
Linear upca = new Linear();
upca.Type = BarcodeType.UPCA;
upca.Data = "12345678912";
upca.BarcodeWidth=280;
upca.BarAlignment = AlignmentHori.Left;
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.
|