原創|行業資訊|編輯:郝浩|2013-10-09 14:31:05.000|閱讀 337 次
概述:Barcode Xpress支持一系列的1D和2D的條形碼,并可以在圖像中自動檢測所有的條碼,還會對檢測的所有的條碼返回一個詳細的且完善的檢測結果。本文將說明如何獲得條碼檢測結果
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關鏈接:
條碼控件Barcode Xpress提供了條碼檢測和條碼創建的的功能,使用Barcode Xpress將會更加輕松的添加優秀的條碼功能到你的Windows應用程序中。Barcode Xpress支持一系列的1D和2D的條形碼,并可以在圖像中自動檢測所有的條碼,還會對檢測的所有的條碼返回一個詳細的且完善的檢測結果。
每個條碼結果包含以下的屬性參數:
Barcode value
Barcode type
Confidence
Location
Skew
由于Barcode Xpress可以從一個單一的掃描中返回多個條碼結果,檢測的條碼結果都可以按照下面的標準來進行存儲,但是需要注意的是所有解決了的條碼將會排在沒有解決的條碼之前。
下面以一個示例說明:
Sort the results top to bottom Dim BarcodeArray() As BarcodeInfo Redim BarcodeArray(0 To BarcodeXpress1.NumBarcodes - 1) ' fill the user type array For i = 0 To BarcodeXpress1.NumBarcodes - 1 BarcodeXpress1.GetBarcode i BarcodeArray(i).CodeName = BarcodeXpress1.BarcodeCodeName BarcodeArray(i).result = BarcodeXpress1.BarcodeResult BarcodeArray(i).CheckSumOK = BarcodeXpress1.CheckSumOK BarcodeArray(i).Confidence = BarcodeXpress1.Confidence BarcodeArray(i).Length = BarcodeXpress1.ResultLen BarcodeArray(i).X = BarcodeXpress1.BarcodeX BarcodeArray(i).Y = BarcodeXpress1.BarcodeY BarcodeArray(i).H = BarcodeXpress1.BarcodeH BarcodeArray(i).W = BarcodeXpress1.BarcodeW Next i ' actual sort results top to bottom Dim temp As BarcodeInfo For i = Ubound(BarcodeArray) - 1 To 0 Step -1 For j = 0 To i If BarcodeArray(j).Y > BarcodeArray(j + 1).Y Then temp = BarcodeArray(j + 1) BarcodeArray(j + 1) = BarcodeArray(j) BarcodeArray(j) = temp End If Next Next>>>Barcode Xpress 下載
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自:慧都控件網