AztecExtCodetextBuilder

AztecExtCodetextBuilder class

This sample shows how to use AztecExtCodetextBuilder in Extended Mode.

public class AztecExtCodetextBuilder : ExtCodetextBuilder

Constructors

NameDescription
AztecExtCodetextBuilderInitializes a new instance of the AztecExtCodetextBuilder class.

Methods

NameDescription
addECICodetext(object, object)Adds codetext with Extended Channel Identifier. (Inherited from ExtCodetextBuilder)
addPlainCodetext(object)Adds plain codetext to the extended codetext items. (Inherited from ExtCodetextBuilder)
clearClears extended codetext items. (Inherited from ExtCodetextBuilder)
getExtendedCodetextGenerates Extended codetext from the extended codetext list.
init

Fields

NameDescription
JAVA_CLASS_NAME

Examples

//create codetext
let textBuilder = new AztecExtCodetextBuilder();
textBuilder.addECICodetext(ECIEncodings.Win1251, "Will");
textBuilder.addECICodetext(ECIEncodings.UTF8, "犬Right狗");
textBuilder.addECICodetext(ECIEncodings.UTF16BE, "犬Power狗");
textBuilder.addPlainCodetext("Plain text");
//generate codetext
let codetext = textBuilder.getExtendedCodetext();
//generate
let generator = new BarcodeGenerator(EncodeTypes.AZTEC, codetext);
generator.getParameters().getBarcode().getCodeTextParameters().setwoDDisplayText("My Text");
generator.save("test.bmp", BarcodeImageFormat.BMP);

See Also