StripFNC
BarcodeSettings.StripFNC property
FNC1, FNC2, FNC3 karakterlerini kod metninden soyun. Varsayılan değer false.
public bool StripFNC { get; set; }
Mülk değeri
FNC1, FNC2, FNC3 karakterlerini kod metninden çıkarın. Varsayılan değer yanlıştır.
Örnekler
Bu örnek, FNC karakterlerinin nasıl çıkarılacağını gösterir
[C#]
using (BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.GS1Code128, "(02)04006664241007(37)1(400)7019590754"))
{
generator.Save(@"c:\test.png");
}
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.Code128))
{
//StripFNC devre dışı
reader.BarcodeSettings.StripFNC = false;
foreach (BarCodeResult result in reader.ReadBarCodes())
{
Console.WriteLine("BarCode CodeText: " + result.CodeText);
}
}
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.Code128))
{
//StripFNC etkin
reader.BarcodeSettings.StripFNC = true;
foreach (BarCodeResult result in reader.ReadBarCodes())
{
Console.WriteLine("BarCode CodeText: " + result.CodeText);
}
}
[VB.NET]
Using generator As New BarcodeGenerator(EncodeTypes.GS1Code128, "(02)04006664241007(37)1(400)7019590754")
generator.Save("c:\test.png")
End Using
Using reader As New BarCodeReader("c:\test.png", DecodeType.Code128)
'StripFNC devre dışı
reader.BarcodeSettings.StripFNC = False
For Each result As BarCodeResult In reader.ReadBarCodes()
Console.WriteLine("BarCode CodeText: " + result.CodeText)
Next
End Using
Using reader As New BarCodeReader("c:\test.png", DecodeType.Code128)
'StripFNC etkin
reader.BarcodeSettings.StripFNC = True
For Each result As BarCodeResult In reader.ReadBarCodes()
Console.WriteLine("BarCode CodeText: " + result.CodeText)
Next
End Using
Ayrıca bakınız
- class BarcodeSettings
- ad alanı Aspose.BarCode.BarCodeRecognition
- toplantı Aspose.BarCode