FoundCount
BarCodeReader.FoundCount property
获取识别的条形码计数
public int FoundCount { get; }
适当的价值
识别的条码计数
例子
此示例显示如何使用 BarCodeReader 读取条形码
[C#]
using (BarCodeReader reader = new BarCodeReader(@"c:\test.png", DecodeType.Code39Standard, DecodeType.Code128))
{
reader.ReadBarCodes();
for(int i = 0; reader.FoundCount > i; ++i)
Console.WriteLine("BarCode CodeText: " + reader.FoundBarCodes[i].CodeText);
}
[VB.NET]
Using reader As New BarCodeReader("c:\test.png", DecodeType.Code39Standard, DecodeType.Code128)
reader.ReadBarCodes()
For i As Integer = 0 To reader.FoundCount - 1 Step 1
Console.WriteLine("BarCode CodeText: " + reader.FoundBarCodes(i).CodeText)
Next
End Using