Class AztecExtCodetextBuilder

AztecExtCodetextBuilder class

Extended codetext generator for Aztec barcodes for ExtendedCodetext Mode of AztecEncodeMode

Use TwoDDisplayText property of BarcodeGenerator to set visible text to removing managing characters.

public class AztecExtCodetextBuilder : ExtCodetextBuilder

Constructors

NameDescription
AztecExtCodetextBuilder()The default constructor.

Methods

NameDescription
AddECICodetext(ECIEncodings, string)Adds codetext with Extended Channel Identifier
AddPlainCodetext(string)Adds plain codetext to the extended codetext items
virtual Clear()Clears extended codetext items
override GetExtendedCodetext()Generates Extended codetext from the extended codetext list.

Examples

This sample shows how to use AztecExtCodetextBuilder in Extended Mode.

[C#]
//create codetext
AztecExtCodetextBuilder textBuilder = new AztecExtCodetextBuilder();
textBuilder.AddECICodetext(ECIEncodings.Win1251, "Will");
textBuilder.AddECICodetext(ECIEncodings.UTF8, "犬Right狗");
textBuilder.AddECICodetext(ECIEncodings.UTF16BE, "犬Power狗");
textBuilder.AddPlainCodetext("Plain text");

//generate codetext
string codetext = textBuilder.GetExtendedCodetext();    

//generate
using(BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.Aztec, codetext))
{
    generator.Parameters.Barcode.CodeTextParameters.TwoDDisplayText = "My Text";
	generator.Save("test.bmp");
}

See Also