Barcode Generator Builder

Defined under the namespace Scandit.Datacapture.Barcode.Generator

BarcodeGeneratorBuilder
class BarcodeGeneratorBuilder<T>

Added in version 6.24.0

withBackgroundColor(color)
withBackgroundColor(color: Color): BarcodeGeneratorBuilder<T>

Added in version 6.24.0

Sets the background color for the generated codes. Default is Color.WHITE.

withForegroundColor(color)
withForegroundColor(color: Color): BarcodeGeneratorBuilder<T>

Added in version 6.24.0

Sets the foreground color for the generated codes. Default is Color.BLACK.

build()
build(): BarcodeGenerator

Added in version 6.24.0

Constructs a BarcodeGenerator with the properties set on the builder.

Code39BarcodeGeneratorBuilder
class Code39BarcodeGeneratorBuilder : BarcodeGeneratorBuilder<Code39BarcodeGeneratorBuilder>

Added in version 6.24.0

Code128BarcodeGeneratorBuilder
class Code128BarcodeGeneratorBuilder : BarcodeGeneratorBuilder<Code128BarcodeGeneratorBuilder>

Added in version 6.24.0

InterleavedTwoOfFiveBarcodeGeneratorBuilder
class InterleavedTwoOfFiveBarcodeGeneratorBuilder : BarcodeGeneratorBuilder<InterleavedTwoOfFiveBarcodeGeneratorBuilder>

Added in version 6.24.0

Ean13BarcodeGeneratorBuilder
class Ean13BarcodeGeneratorBuilder : BarcodeGeneratorBuilder<Ean13BarcodeGeneratorBuilder>

Added in version 6.24.0

UpcaBarcodeGeneratorBuilder
class UpcaBarcodeGeneratorBuilder : BarcodeGeneratorBuilder<UpcaBarcodeGeneratorBuilder>

Added in version 6.24.0

DataMatrixBarcodeGeneratorBuilder
class DataMatrixBarcodeGeneratorBuilder : BarcodeGeneratorBuilder<DataMatrixBarcodeGeneratorBuilder>

Added in version 6.24.0

QrCodeBarcodeGeneratorBuilder
class QrCodeBarcodeGeneratorBuilder : BarcodeGeneratorBuilder<QrCodeBarcodeGeneratorBuilder>

Added in version 6.24.0

withErrorCorrectionLevel(errorCorrectionLevel)
withErrorCorrectionLevel(errorCorrectionLevel: QrCodeErrorCorrectionLevel): QrCodeBarcodeGeneratorBuilder

Added in version 6.24.0

Configure how much error correction to use in the generated code.

withVersionNumber(versionNumber)
withVersionNumber(versionNumber: number): QrCodeBarcodeGeneratorBuilder

Added in version 6.24.0

The version number for the QR code. Version number determines the size of the QR code, with a larger size allowing more data to be stored. The value must be greater than 0, and if the value is too small for the data being encoded, code generation will fail.

Maximum number of encodable characters (abbreviated)

Version

Numeric

Alphanumeric

8-bit Binary

Kanji

Low

Med.

Quart.

High

Low

Med.

Quart.

High

Low

Med.

Quart.

High

Low

Med.

Quart.

High

1

41

34

27

17

25

20

16

10

17

14

11

7

10

8

7

4

2

77

63

48

34

47

38

29

20

32

26

20

14

20

16

12

8

3

127

101

77

58

77

61

47

35

53

42

32

24

32

26

20

15

4

187

149

111

82

114

90

67

50

78

62

46

34

48

38

28

21

5

255

202

144

106

154

122

87

64

106

84

60

44

65

52

37

27

10

652

513

364

288

395

311

221

174

271

213

151

119

167

131

93

74

15

1250

991

703

530

758

600

426

321

520

412

292

220

320

254

180

136

20

2061

1600

1159

919

1249

970

702

557

858

666

482

382

528

410

297

235

25

3057

2395

1718

1286

1853

1451

1041

779

1273

997

715

535

784

614

440

330

30

4158

3289

2358

1782

2520

1994

1429

1080

1732

1370

982

742

1066

843

604

457

35

5529

4343

3081

2361

3351

2632

1867

1431

2303

1809

1283

983

1417

1113

790

605

40

7089

5596

3993

3057

4296

3391

2420

1852

2953

2331

1663

1273

1817

1435

1024

784

AztecBarcodeGeneratorBuilder
class AztecBarcodeGeneratorBuilder : BarcodeGeneratorBuilder<AztecBarcodeGeneratorBuilder>

Added in version 7.0.0

withMinimumErrorCorrectionPercent(minimumErrorCorrectionPercent)
withMinimumErrorCorrectionPercent(minimumErrorCorrectionPercent: number): AztecBarcodeGeneratorBuilder

Added in version 7.0.0

Optional parameter to configure how much error correction to use in the generated code. The value must be greater than 0.

withLayers(layers)
withLayers(layers: number): AztecBarcodeGeneratorBuilder

Added in version 7.0.0

Optional parameter to configure how many layers, each one containing two rings of pixels, to use in the generated code. The value must be between -4 and 32. Negative values create compact codes.