The DynamicBarcode Creator for the .NET object model is straightforward. Class and method names match what you expect and are intuitive. For example, the class name for the Code 39 barcode is Code39. Other barcode entities are named similarly. The flow of most applications written using the Barcode DLL is as follows.
- Create any barcode class object by passing parameters to the respective constructor of the desired barcode type.
- Specify the name and location of the output file (use the instantiated class's Draw method to create the specific barcode class).
The following example illustrates creating a Code 39 barcode.
Code39 barcode = new Code39("123456789", 100); barcode.Draw(pngFilePath, 300, ImageFormat.Png);
Dim barcode As Code39 = New Code39("123456789", 100) barcode.Draw(pngFilePath, 300, ImageFormat.Png)
The barcode-creator-core-framework project on GitHub contains example code demonstrating how to use the DynamicBarcode creator software. There are examples using .NET Framework and Core for both C# and Visual Basic .NET.
The projects are:
- barcode-creator-framework-console-cs, and
Classes for each of these examples are provided in each project.