Basic Steps to Create a 1D Barcode
| Property | Description |
| BarcodeType | This property gets or sets the type of barcode to create from the BarcodeType enumeration. |
| BarcodeValue | This property gets or sets the value of the barcode to be created. |
| BarcodeValueAsByte | This property gets or sets the current barcode value as an array of bytes used only if non-ASCII text values are needed. |
| Method | Description |
| CreatePage | This method is the main method for creating ImGearPage barcodes. |
| C# Example - Basic steps for barcode writing 1D barcodes |
Copy Code |
|---|---|
//create the Barcode component ImageGear.Barcode.ImGearBarcode IGBarcodeWrite = new ImageGear.Barcode.ImGearBarcode(); //set the required writer properties IGBarcodeWrite.Writer.BarcodeType = ImGearBarcodeType.Code39Barcode; IGBarcodeWrite.Writer.BarcodeValue = "CODE39"; //call Create and get resulting image myImGearPage = IGBarcodeWrite.Writer.CreatePage(); | |
| VB.NET Example - Basic steps for barcode writing 1D barcodes |
Copy Code |
|---|---|
'create the Barcode component Dim IGBarcodeWrite As New ImageGear.Barcode.ImGearBarcode() 'set the required writer properties IGBarcodeWrite.Writer.BarcodeType = ImGearBarcodeType.Code39Barcode IGBarcodeWrite.Writer.BarcodeValue = "CODE39" 'call Create and get resulting image myImGearPage = IGBarcodeWrite.Writer.CreatePage() | |