Class AustraliaPostSettings
Namespace: Aspose.BarCode.BarCodeRecognition
Assembly: Aspose.BarCode.dll (25.1.0)
פרמטרי פענוח AustraliaPost. מכיל פרמטרים שמשפיעים על הנתונים המזוהים של סימבולוגיית AustraliaPost.
[XmlSerialization(Name = "Aspose.BarCode.Reader.Properties.BarcodeSettings.AustraliaPost")]
public sealed class AustraliaPostSettings
ירושה
object ← AustraliaPostSettings
חברים ירושים
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
מאפיינים
CustomerInformationDecoder
ממשק ציבורי לפענוח שדה מידע לקוח שמשמש בסימבולוגיית AustraliaPost.
public AustraliaPostCustomerInformationDecoder CustomerInformationDecoder { get; set; }
ערך המאפיין
AustraliaPostCustomerInformationDecoder
CustomerInformationInterpretingType
מקבל או קובע את סוג הפענוח עבור מידע הלקוח של AustraliaPost BarCode. ברירת המחדל היא CustomerInformationInterpretingType.Other.
[XmlSerialization(Type = XmlSerializationType.Element)]
public CustomerInformationInterpretingType CustomerInformationInterpretingType { get; set; }
ערך המאפיין
CustomerInformationInterpretingType
IgnoreEndingFillingPatternsForCTable
הדגל שמכריח את מפענח AustraliaPost להתעלם מהדפוסים הממלאים האחרונים בשדה מידע הלקוח במהלך הפענוח בשיטת CTable. שיטת הקידוד CTable אינה מכילה פערים בטבלת הקידוד והסדרה “333” של דפוסים ממלאים מפוענחת כאות “z”.
[XmlSerialization(Type = XmlSerializationType.Element)]
public bool IgnoreEndingFillingPatternsForCTable { get; set; }
ערך המאפיין
דוגמאות
דוגמה זו מראה כיצד לייצר ולזהות קוד ברקוד Australia Post עם סוג פענוח CTable ולהתעלם מדפוסים ממלאים.
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);
}
}
}
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