Barcode Generator

Defined under the namespace Scandit.Datacapture.Barcode.Generator

BarcodeGenerator
class BarcodeGenerator : DataCaptureComponent

Added in version 6.24.0

id()
get id(): string

Added in version 6.24.0

Get the data capture component ID for the barcode generator.

generateFromBase64EncodedData(data, imageWidth)
generateFromBase64EncodedData(data: string,
        imageWidth: number): Promise<string>

Added in version 6.24.0

Generate a code of the given width for the supplied data. If the data is not compatible with the generator’s symbology, an exception is thrown.

imageWidth specifies the width of the image in pixels.

Note

When running on iOS, the resulting UIImage will use the same scale as the device screen.

generate(text, imageWidth)
generate(text: string,
        imageWidth: number): Promise<string>

Added in version 6.24.0

Generate a code of the given width for the supplied text. If the text is not compatible with the generator’s symbology, an exception is thrown.

imageWidth specifies the width of the image in pixels.

Note

When running on iOS, the resulting UIImage will use the same scale as the device screen.

code39BarcodeGeneratorBuilder(dataCaptureContext)
static code39BarcodeGeneratorBuilder(dataCaptureContext: DataCaptureContext): Code39BarcodeGeneratorBuilder

Added in version 6.24.0

Create a Code 39 Barcode Generator builder for the provided context.

code128BarcodeGeneratorBuilder(dataCaptureContext)
static code128BarcodeGeneratorBuilder(dataCaptureContext: DataCaptureContext): Code128BarcodeGeneratorBuilder

Added in version 6.24.0

Create a Code 128 Barcode Generator builder for the provided context.

ean13BarcodeGeneratorBuilder(dataCaptureContext)
static ean13BarcodeGeneratorBuilder(dataCaptureContext: DataCaptureContext): Ean13BarcodeGeneratorBuilder

Added in version 6.24.0

Create an EAN13 Barcode Generator builder for the provided context.

Note

EAN13 codes are composed of 13 symbols. If 12 symbols are provided, it is assumed that the checksum is missing and it is generated and appended to the end.

upcaBarcodeGeneratorBuilder(dataCaptureContext)
static upcaBarcodeGeneratorBuilder(dataCaptureContext: DataCaptureContext): UpcaBarcodeGeneratorBuilder

Added in version 6.24.0

Create a UPCA Barcode Generator builder for the provided context.

interleavedTwoOfFiveBarcodeGeneratorBuilder(dataCaptureContext)
static interleavedTwoOfFiveBarcodeGeneratorBuilder(
        dataCaptureContext: DataCaptureContext): InterleavedTwoOfFiveBarcodeGeneratorBuilder

Added in version 6.24.0

Create an Interleaved Two-of-Five Barcode Generator builder for the provided context.

qrCodeBarcodeGeneratorBuilder(dataCaptureContext)
static qrCodeBarcodeGeneratorBuilder(dataCaptureContext: DataCaptureContext): QrCodeBarcodeGeneratorBuilder

Added in version 6.24.0

Create a QRCode Barcode Generator builder for the provided context.

dataMatrixBarcodeGeneratorBuilder(dataCaptureContext)
static dataMatrixBarcodeGeneratorBuilder(dataCaptureContext: DataCaptureContext): DataMatrixBarcodeGeneratorBuilder

Added in version 6.24.0

Create a DataMatrix Barcode Generator builder for the provided context.

aztecBarcodeGeneratorBuilder(dataCaptureContext)
static aztecBarcodeGeneratorBuilder(dataCaptureContext: DataCaptureContext): AztecBarcodeGeneratorBuilder

Added in version 7.0.0

Create an Aztec Barcode Generator builder for the provided context.

dispose()
dispose(): void

Added in version 6.24.0

Disposes the barcode generator.