AustraliaPostSettings.IgnoreEndingFillingPatternsForCTable
Contents
[
Hide
]AustraliaPostSettings.IgnoreEndingFillingPatternsForCTable property
The flag which force AustraliaPost decoder to ignore last filling patterns in Customer Information Field during decoding as CTable method. CTable encoding method does not have any gaps in encoding table and sequnce “333” of filling paterns is decoded as letter “z”.
public bool IgnoreEndingFillingPatternsForCTable { get; set; }
Property Value
The flag which force AustraliaPost decoder to ignore last filling patterns during CTable method decoding
Examples
This sample shows how to generate and recognize Australia Post barcode with CTable Interpreting Type and ignoring filling patterns.
[C#]
using (BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.AustraliaPost, "5912345678AB"))
{
generator.Parameters.Barcode.AustralianPost.AustralianPostEncodingTable = CustomerInformationInterpretingType.CTable;
using (Bitmap image = generator.GenerateBarCodeImage())
using (BarCodeReader reader = new BarCodeReader(image, DecodeType.AustraliaPost))
{
reader.BarcodeSettings.AustraliaPost.CustomerInformationInterpretingType = CustomerInformationInterpretingType.CTable;
reader.BarcodeSettings.AustraliaPost.IgnoreEndingFillingPatternsForCTable = true;
foreach (BarCodeResult result in reader.ReadBarCodes())
{
Console.WriteLine("BarCode Type: " + result.CodeType);
Console.WriteLine("BarCode CodeText: " + result.CodeText);
}
}
}
[VB.NET]
Using generator As New BarcodeGenerator(EncodeTypes.AustraliaPost, "5912345678AB")
generator.Parameters.Barcode.AustralianPost.AustralianPostEncodingTable = CustomerInformationInterpretingType.CTable
Using image As Bitmap = generator.GenerateBarCodeImage()
Using reader As New BarCodeReader(image, DecodeType.AustraliaPost)
reader.BarcodeSettings.AustraliaPost.CustomerInformationInterpretingType = CustomerInformationInterpretingType.CTable
reader.BarcodeSettings.AustraliaPost.IgnoreEndingFillingPatternsForCTable = True
For Each result As BarCodeResult In reader.ReadBarCodes()
Console.WriteLine("BarCode Type: " + result.CodeTypeName)
Console.WriteLine("BarCode CodeText: " + result.CodeText)
Next
End Using
End Using
End Using
See Also
- class AustraliaPostSettings
- namespace Aspose.BarCode.BarCodeRecognition
- assembly Aspose.BarCode