TBarCode - Your Barcode Generation Solution for .NET TBarCode .NET contains the following components: * Barcode Library for .NET 5, .NET 6, Core 3.x and Standard 2.x - Barcode Class * Barcode Assembly for .NET Framework 4.6.2+ - Barcode Class - Barcode WinForms Control - Barcode ASP.NET 2.0 Web Forms Control * TBarCode Library (native barcode generator core) Features of the Barcode Generator: - All major linear, 2D and GS1 barcode variants are supported: QR-Code, Data Matrix, PDF417, MaxiCode™, GS1 DataBar, GS1-128, EAN, UPC and more. - Draw directly to graphics objects or printer devices in the highest possible resolution. Enable DPI driven module width optimization. - Create bitmap (BMP, GIF, JPG, TIF, PNG) or vector graphics (EPS, PCL, EMF, WMF, PDF) - on disk or as memory stream. - Callback Interface for custom drawing routines (e.g. for laser graving systems or DPM). - All barcode parameters are adjustable: module width, bar/space ratio, bar width reduction, rotation, colors, fonts, alignment etc. More advanced 2D Features: - Full support of QR-Code, Micro QR-Code, Data Matrix (ECC200), GS1 DataMatrix, PDF417, MicroPDF417, MaxiCode™, Aztec Code, DotCode, Codablock-F. - The most efficient coding method (e.g. Binary, ASCII, Bytes, Numbers, C40...) is selected and dynamically adapted to the data progress. - All symbology-specific barcode modes (e.g. ECI, EAN-128 Emulation, Industry Formats, Macro 05/06, Aztec Runes...) are supported without deduction. - Encode Asian character sets (e.g. Japanese, Chinese) in 2D bar codes like QR-Code. Unicode/UTF-8 support included. Getting Started with TBarCode .NET: Once the package is installed (Install-Package TECIT.TBarCode), integrate it into your project by adding the following import statement: using TECIT.TBarCode; Here's a C# code snippet that allows you to save a QR Code as a high-quality JPG bitmap with optimal size: // Create a TBarCode instance var barcode = new Barcode(); // Set barcode type (e.g., QR Code) barcode.BarcodeType = BarcodeType.QRCode; // Set data to encode barcode.Data = "YourDataHere"; // Resize to a suitable dimension with optimal quality barcode.Dpi = 300; Size optimalSize = barcode.CalculateOptimalBitmapSize(null, 6, 6); // 1 Module = 6 Pixels barcode.BoundingRectangle = new Rectangle(0, 0, optimalSize.Width, optimalSize.Height); // Save the barcode image to a file barcode.Draw("MyFirstQRCode.jpg", ImageType.Jpg); Dependencies: - System.Drawing.Common - TBarCode Library (DLL) - included in this nuget package - MSVC Runtime Libraries (VS2019) While the API itself is managed code, it's important to note that TBarCode .NET has native code dependencies. The bar code generator core is supplied as a natively compiled library, with versions available for Windows, Linux, and macOS. For those deploying applications on Microsoft Azure, where GDI (Graphics Device Interface) access is limited or restricted, TBarCode .NET provides separate drawing functions specifically designed for such scenarios. Sample code is available to guide you through the integration process. VC Runtime download: https://learn.microsoft.com/cpp/windows/latest-supported-vc-redist?view=msvc-170 Documentation, Samples and Support: - API: https://www.tec-it.com/Documentation/TBarCode11_NET_Reference - FAQ: https://www.tec-it.com/support/faq/tbarcode/barcode-net.aspx - Sample: https://www.tec-it.com/download/Samples/TBarCodeNET11_QRCodeGenerator.zip - Data sheet: https://www.tec-it.com/software/barcode-software/tbarcode/datasheet.aspx - Downloads: https://www.tec-it.com/download/tbarcode/Download.aspx - Licensing: https://www.tec-it.com/order/ Free demo version | Free pre-sale support | Free test licenses For all your support, pre-sale inquiries, and licensing needs, please feel free to reach out to us at support@tec-it.com.
$ dotnet add package TECIT.TBarCode
TBarCode empowers you with a robust barcode generator, neatly wrapped in a streamlined and intuitive programming interface. Beyond just printing, it enables you to effortlessly save barcode images and byte stream objects. This versatile barcode library seamlessly integrates into all kinds of .NET applications, including web-based projects with barcode requirements.
TBarCode .NET includes the following components:
Our .NET barcode classes seamlessly harmonize with popular development environments like Visual Studio .NET and other essential .NET development tools. Experience barcode generation made easy with TEC-IT BarCode for .NET.
Begin your barcode generation with TBarCode .NET by following these straightforward steps:
Install the TECIT.TBarCode NuGet package in the Package Manager Console with the following command:
PM> Install-Package TECIT.TBarCode
Once the package is installed, integrate it into your project by adding the following import statement at the top of your code file:
using TECIT.TBarCode;Here's a C# code snippet which demonstrates how to save a QR Code as a high-quality JPG bitmap with optimal sizing:
// Create a TBarCode instance
var barcode = new Barcode();
// Set barcode type (e.g., QR Code)
barcode.BarcodeType = BarcodeType.QRCode;
// Set data to encode
barcode.Data = "YourDataHere";
// Resize to a suitable dimension with optimal quality
barcode.Dpi = 300;
Size optimalSize = barcode.CalculateOptimalBitmapSize(null, 6, 6); // 1 Module = 6 Pixels
barcode.BoundingRectangle = new Rectangle(0, 0, optimalSize.Width, optimalSize.Height);
// Save the barcode image to a file
barcode.Draw("MyFirstQRCode.jpg", ImageType.Jpg);While the API itself is managed code, it's important to note that TBarCode .NET has native code dependencies. The core library is supplied as a natively compiled library, with versions available for Windows, Linux, and macOS.
For those deploying applications on Microsoft Azure, where GDI (Graphics Device Interface) access is limited or restricted, TBarCode .NET provides separate drawing functions specifically designed for such scenarios. Sample code is available to guide you through the integration process.
VC Runtime download: https://learn.microsoft.com/cpp/windows/latest-supported-vc-redist?view=msvc-170
Free eval version | Free pre-sale support | Free test licenses
For all your support, pre-sale inquiries, and licensing needs, please feel free to reach out to us at support@tec-it.com.
Contact: TEC-IT Datenverarbeitung GmbH, https://www.tec-it.com/contact