Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Created October 19, 2020 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/4bd7bbacc9151bf03da3125ec4559746 to your computer and use it in GitHub Desktop.
Save aspose-com-gists/4bd7bbacc9151bf03da3125ec4559746 to your computer and use it in GitHub Desktop.
Generate Barcode C#
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Code128, "Aspose.BarCode");
// set captions
generator.Parameters.CaptionAbove.Text = "The caption above.";
generator.Parameters.CaptionAbove.Visible = true;
generator.Parameters.CaptionBelow.Text = "The caption below.";
generator.Parameters.CaptionBelow.Visible = true;
// generate barcode
generator.Save("generate-barcode.png");
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Code128, "Aspose.BarCode");
// set resolution
generator.Parameters.Resolution = 400;
// generate barcode
generator.Save("generate-barcode.png");
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");
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.QR, "Aspose.BarCode");
// set resolution
generator.Parameters.Resolution = 400;
// generate barcode
generator.Save("generate-barcode.png");
Copy link

ghost commented Jan 5, 2021

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

@shahzad-latif
Copy link

@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