Created
January 20, 2023 09:19
Generate HIBC LIC Barcodes with Primary Data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//create a HIBC LIC barcode based on QR Code | |
HIBCLICPrimaryDataCodetext complexCodetext = new HIBCLICPrimaryDataCodetext(); | |
complexCodetext.BarcodeType = EncodeTypes.HIBCQRLIC; | |
//define the primary data to be encoded | |
complexCodetext.Data = new PrimaryData(); | |
complexCodetext.Data.ProductOrCatalogNumber = "12345"; | |
complexCodetext.Data.LabelerIdentificationCode = "A999"; | |
complexCodetext.Data.UnitOfMeasureID = 1; | |
//encode the data in the HIBC LIC format and save the generated barcode | |
using (ComplexBarcodeGenerator gen = new ComplexBarcodeGenerator(complexCodetext)) | |
{ | |
gen.Parameters.Barcode.XDimension.Pixels = 10; | |
gen.Save($"{path}HIBCLICPrimary.png"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment