Desktop & Mobile Apps, Console Apps & Services Getting Started
System Requirements
For developing any applications or services with Neodynamic Barcode Professional for .NET Standard, the following system and software specifications are required:
- Any .NET Standard 2.0+ Supported Platform:
- .NET Core 2.0+
- .NET Framework 4.6.1+
- Mono 5.4+
- Xamarin.iOS 10.14+
- Xamarin.Android 8.0+
- Xamarin.Mac 3.8+
- Universal Windows Platform (UWP) 10.0.16299+
- System.Text.Encoding.CodePages 4.4.0+
- SkiaSharp 1.60+
First Steps with Barcode Professional
For using Barcode Professional in any of the supported platforms listed above, you just have to add references to the Neodynamic.SDK.BarcodeCore.dll and required additional packages, and then create an instance of BarcodeProfessional class. Then, after specifying a Value to encode, choosing a Barcode Symbology, and setting some simple properties, Barcode Professional will render the barcode image in the specified image format like JPEG/JPG, PNG, PCX, SVG, EPS, PDF and more!
Note
Barcode Professional can generate most popular Linear (1D), Postal, Component Composite & 2D Barcode Symbologies including Code 39, Code 128, GS1-128, GS1 DataBar (RSS-14), EAN 13 & UPC, ISBN, ISBT-128, Postal (USPS, British Royal Mail, Australia Post, DHL, FedEx), Data Matrix, QR Code, PDF 417, Aztec Code, UPS MaxiCode, Chinese Han Xin Code, IFA PPN, Swiss QR Code, JAB Code 2D Multicolored Matrix, all EAN/UPC Composite Barcodes (CC-A, CC-B & CC-C) and many more barcode standards
If you need further assistance, please contact our team at https://www.neodynamic.com/support
Using BarcodeProfessional class in any .NET Standard Supported Project
- In your .NET project, add a reference to Neodynamic.SDK.BarcodeCore.dll from Nuget repo by running the following command in the Visual Studio's Package Manager Console
PM> Install-Package Neodynamic.SDK.BarcodeCore
Make sure that the following NuGet packages were also included in your project:
- System.Text.Encoding.CodePages 4.4.0+
- SkiaSharp 1.60+
If any of those packages are missing, then add a reference to them by running these commands:
PM> Install-Package System.Text.Encoding.CodePages
PM> Install-Package SkiaSharp
Create and Save a barcode image on disk
- To create and save a barcode image on disk, use the following snipped code. In this sample code, we create an instance of BarcodeProfessional class to create a QR Code based on the specified value to encode:
//Create an instance of BarcodeProfessional class
using (Neodynamic.SDK.BarcodeCore.BarcodeProfessional bc = new Neodynamic.SDK.BarcodeCore.BarcodeProfessional())
{
//Set the desired barcode type or symbology
bc.Symbology = Neodynamic.SDK.BarcodeCore.Symbology.QRCode;
//Set value to encode
bc.Code = "ABC123";
//Generate barcode image and save on disk
bc.Save("c:/temp/Barcode.png", SkiaSharp.SKEncodedImageFormat.Png);
}
Get a byte array of a barcode image
- To get a byte array buffer of a barcode image use the following snipped code. In this sample code, we create an instance of BarcodeProfessional class to create a QR Code based on the specified value to encode:
//Create an instance of BarcodeProfessional class
using (Neodynamic.SDK.BarcodeCore.BarcodeProfessional bc = new Neodynamic.SDK.BarcodeCore.BarcodeProfessional())
{
//Set the desired barcode type or symbology
bc.Symbology = Neodynamic.SDK.BarcodeCore.Symbology.QRCode;
//Set value to encode
bc.Code = "ABC123";
//Generate barcode image and get buffer
byte[] barcodeBuffer = bc.GetBarcodeImage(SkiaSharp.SKEncodedImageFormat.Png);
}
- That buffer can then be used to create or load the barcode image to any user control or Bitmap object to the target platform.
Need Assistance?
- For tech assistance please contact our Support