Created
October 19, 2020 15:28
-
-
Save aspose-com-gists/4bd7bbacc9151bf03da3125ec4559746 to your computer and use it in GitHub Desktop.
Generate Barcode C#
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
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Code128, "Aspose.BarCode"); | |
// set resolution | |
generator.Parameters.Resolution = 400; | |
// generate barcode | |
generator.Save("generate-barcode.png"); |
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
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Aztec, "Aspose.BarCode"); | |
// set barcode's back color | |
generator.Parameters.BackColor = System.Drawing.Color.DarkGray; | |
// set barcode's bar color | |
generator.Parameters.Barcode.BarColor = System.Drawing.Color.Orange; | |
// set border color | |
generator.Parameters.Border.Color = System.Drawing.Color.Black; | |
// set text color | |
generator.Parameters.Barcode.CodeTextParameters.Color = System.Drawing.Color.Orange; | |
// set resolution | |
generator.Parameters.Resolution = 400; | |
// generate barcode | |
generator.Save("generate-barcode.png"); |
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
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.QR, "Aspose.BarCode"); | |
// set resolution | |
generator.Parameters.Resolution = 400; | |
// generate barcode | |
generator.Save("generate-barcode.png"); |
@binshamlan
You need to buy a license for the product which you can buy at our website aspose.com. I hope this helps.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I used the Barcode and it is excellent, what do you need from me to remove the (ASPOSE BARCODE EVALUATION VERSION)
Best regards;
Ibrahim Khalifi