![]() ![]() 4 options are: facing left, facing right, facing bottom, and facing top code128.Rotate = Rotate.Rotate0 /* * Linear barcodes human readable text styles */ // Display human readable text under the barcode code128.ShowText = true // Display checksum digit at the end of barcode data. code128.Resolution = 72 // Created barcode orientation. code128.LeftMargin = 0 code128.RightMargin = 0 code128.TopMargin = 0 code128.BottomMargin = 0 // Image resolution in dpi, default is 72 dpi. code128.UOM = UnitOfMeasure.PIXEL // Bar module width (X), default is 1 pixel code128.X = 1 // Bar module height (Y), default is 60 pixel code128.Y = 60 // Barcode image left, right, top, bottom margins. code128.Type = BarcodeType.CODE128 // Apply checksum digit for Code-128 code128.AddCheckSum = true /* * Barcode Image Related Settings */ // Unit of meature for all size related setting in the library. Using System using using System.Text using OnBarcode.Barcode using using System.Drawing Linear code128 = new Linear() // Barcode data to encode code128.Data = "ONBARCODE" // Barcode symbology type. Generate Code-128 and encode barcode to png formatĬode128.Format = .Png Ĭode128.drawBarcode( "W://Projects//Test-Output////csharp-code128-non-print.png") ![]() Human readable text font size, font family and styleĬode128.TextFont = new Font( "Arial", 9f, FontStyle.Regular) Display checksum digit at the end of barcode data. * * Linear barcodes human readable text styles */ // Display human readable text under the barcode 4 options are: facing left, facing right, facing bottom, and facing top Image resolution in dpi, default is 72 dpi. Barcode image left, right, top, bottom margins. Bar module height (Y), default is 60 pixel Bar module width (X), default is 1 pixel * * Barcode Image Related Settings */ // Unit of meature for all size related setting in the library. encode non printable char '', between 'a' and 'b' ![]()
0 Comments
Leave a Reply. |