Created
July 17, 2017 09:29
-
-
Save foyzulkarim/f254837836b7345a01efc3cf7803f887 to your computer and use it in GitHub Desktop.
Aspose.Barcode C#
This file contains hidden or 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
| private static void GenerateBarcode(string barCode, string text, string filename) | |
| { | |
| BarCodeBuilder builder = new BarCodeBuilder(barCode); | |
| Caption captionBelow = new Caption(text) | |
| { | |
| TextAlign = StringAlignment.Center, | |
| Font = new Font(FontFamily.GenericSansSerif, 10, FontStyle.Bold) | |
| }; | |
| builder.CaptionBelow = captionBelow; | |
| builder.Save(filename, ImageFormat.Png); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment