UPC-A, a barcode symbology based on the Universal Product Code (UPC), is widely used in the United States, Canada, the United Kingdom, Australia, New Zealand and in other countries for tracking trade items in stores.
How to Generate UPC-A
Generating UPC-A in .NET is one of the generation roles in pqScan .NET Barcode Creator. With the similar structure and functionality to EAN-13, UPC-A barcode creation can be used in .NET Winforms projects and ASP.NET applications. For more help, making UPC-A in C# and VB.NET is support, too.
BarType: Rendering UPC-A barcode, select barcode type to UPCA.
Data: Only support numeric digits (0 through 9). Input date length is 11 or 12, the check digits will be added automatically.
Width: It's barcode image width. UPC-A Creator will try to fill the width to draw barcode image, and if the encoded barcode width is remain smaller than image width, left and right margin will be added into UPC-A barcode image.
Height: It's barcode image height. UPC-A Creator will print barcode full fill the height.
ShowText: Whether show human-readable word in UPC-A barcode image. If true, the text would appear at the bottom of barcode image. Default is True.
BarcodeColor: Customize the foreground color of UPC-A barcode image. Default is Black color.
BackgroundColor: Specify the background color of UPC-A barcode image. Default is White color.
PictureFormat: Generate barcode and save image as Jpeg, Tiff, Gif, Png, Bmp format.
// encode upca and draw on Bitmap object public Bitmap CreateBarcode() // create and draw upca to image file publicvoidCreateBarcode(string filename) // generate upca and paint on Stream object publicvoidCreateBarcode(Stream stream) // make and print upca to byte[] object publicbyte[] CreateBarcodeInBytes()