save

save(object, object)

Save barcode image to specific file in specific format.

save(filePath, format)
ParameterTypeDescription
filePathobjectPath to save to.
formatobjectBarCodeImageFormat value (PNG, BMP, JPEG, GIF)

Examples

let generator = new BarCodeGenerator(EncodeTypes.CODE_128);
generator.save("file path", BarCodeImageFormat.GIF);

See Also