generateBarCodeImage

generateBarCodeImage(format)

Generate the barcode image under current settings. This sample shows how to create and save a barcode image.

ParameterTypeDescription
formatBarCodeImageFormatBarCodeImageFormat value (PNG, BMP, JPEG, GIF)

Returns: String — base64 representation of image.

Example:

let generator = new BarCodeGenerator(EncodeTypes.CODE_128);
let image = generator.generateBarCodeImage(BarCodeImageFormat.GIF);