generateBarCodeImage

generateBarCodeImage(object)

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

generateBarCodeImage(format)
ParameterTypeDescription
formatobjectBarCodeImageFormat value (PNG, BMP, JPEG, GIF)

Return Value

String

base64 representation of image.

Examples

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

See Also