The DynamicBarcode Creator for .NET object model is straight forward. 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)