save
save(filePath, format)
Save barcode image to specific file in specific format.
| Parameter | Type | Description |
|---|---|---|
| filePath | String | Path to save to. |
| format | BarCodeImageFormat | BarCodeImageFormat value (PNG, BMP, JPEG, GIF) |
Example:
let generator = new BarCodeGenerator(EncodeTypes.CODE_128);
generator.save("file path", BarCodeImageFormat.GIF);