Skip to content
| Marketplace
Sign in
Visual Studio>Controls>Aspose.BarCode for C++
Aspose.BarCode for C++

Aspose.BarCode for C++

Aspose Marketplace

|
64 clicks
| (0) | Free Trial
A rich-featured API to add barcode generation & recognition capabilities as well as export the generated ones to different images with high quality.
Get Started

Barcode Generation & Scanning API for C++

Nuget Nuget

banner

Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License

Aspose.BarCode for C++ enables the developers to generate, scan, and manipulate barcodes from within their own C++ applications. C++ Barcode Library allows you to modify and customize barcode properties including font, foreground & background colors, alignment, barcode label location, and barcode caption.

Barcode Generation Features

  • Generate barcode images programmatically.
  • Create a PDF417 Barcode, set error correction level, and compaction mode.
  • Generate multiple MacroPdf417 barcodes.
  • Create C40 or Text encoded Datamatrix barcodes with default or custom encoding mode.
  • Create QR and MicroQR barcodes and perform encoding.
  • Supports error correction for various types of barcodes.
  • Generate barcodes with a logo or other images inside instead of CodeText.
  • Hide CodeText that is too long or reduce the font size of CodeText.
  • Adjust image size of 2D barcodes and set aspect ratio.
  • Detect Unicode encoding of barcodes.
  • CodeText can be set as per the associated symbology type and the outbound part is truncated.
  • Enable image border, modify barcode image border width and style.
  • Option to colorize barcode, code text, barcode background, barcode border, and caption.
  • Specify size unit for the barcode image in document, inch, millimeter, pixel, and point.
  • Enable checksum for the barcodes of applicable symbologies.
  • Lots of other barcode processing features.

Supported Symbologies for Barcode Generation & Recognition

  • BarCode Supplement
  • BooklandEAN
  • Codabar
  • Code11
  • Code128
  • Code39 Extended
  • Code39 Standard
  • Code93 Extended
  • Code93 Standard
  • Datamatrix
  • Deutsche Post Identcode
  • EAN128
  • EAN13
  • EAN14(SCC14)
  • EAN8
  • Interleaved2of5
  • ITF14
  • Matrix 2 of 5
  • MSI
  • PDF417
  • Planet
  • Postnet
  • PZN (Pharma Zentral Nummer, Pharmazentralnummer barcode)
  • QR
  • SSCC18
  • Standard2of5
  • UPCA
  • UPCE

Supported Symbologies for Barcode Generation Only

  • Australia Post
  • Aztec

Read & Write Barcode Labels

JPEG, TIFF, PNG, BMP, GIF, EXIF

Save Barcode Labels As

EMF, SVG

Get Started

Are you ready to give Aspose.BarCode for C++ a try? Simply execute Install-Package Aspose.BarCode.Cpp from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.BarCode for C++ and want to upgrade the version, please execute Update-Package Aspose.BarCode.Cpp to get the latest version.

Generate Code128 Barcode in PNG Format

You can execute the below code snippet to see how Aspose.BarCode API works in your development environment. You may also check the GitHub Repository for other common usage scenarios.

// instantiate barcode object and set CodeText & Barcode Symbology
System::SharedPtr<BarcodeGenerator> generator
    = System::MakeObject<BarcodeGenerator>(EncodeTypes::Code128, u"1234");
generator->Save(dir + u"output.png");

Hide Barcode Label Text using C++

Aspose.BarCode for C++ allows you to customize various properties of barcodes, such as borders, color, type, bar height as well as barcode text. The following example shows, how simple it is to hide the barcode text using C++:

System::String codeText = System::String(u"The quick brown fox jumps over the lazy dog\n")
    + u"The quick brown fox jumps over the lazy dog\n";

// instantiate barcode object and set CodeText, Symbology , and  CodeLocation
System::SharedPtr<BarcodeGenerator> generator = [&]
{
    auto tmp_0 = System::MakeObject<BarcodeGenerator>(EncodeTypes::DataMatrix, codeText);

    tmp_0->get_Parameters()->get_Barcode()->get_CodeTextParameters()->set_Location(
        CodeLocation::None);
    return tmp_0;
}();
generator->Save(dir + u"output.png", BarCodeImageFormat::Png);

Product Page | Docs | Demos | API Reference | Examples | Blog | Search | Free Support | Temporary License

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft