原創(chuàng)|使用教程|編輯:郝浩|2013-09-17 11:57:05.000|閱讀 301 次
概述:如何將ImagXpress對(duì)象的圖像數(shù)據(jù)轉(zhuǎn)移到Barcode Xpress對(duì)象上呢?在Barcode Xpress組件中,你也可以使用下面這個(gè)方法輕松的實(shí)現(xiàn)復(fù)制或是轉(zhuǎn)移ImagXpress對(duì)象的圖像數(shù)據(jù)到Barcode Xpress對(duì)象上。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
相關(guān)鏈接:
在Barcode Xpress組件內(nèi)只有一個(gè)類支持接收?qǐng)D像數(shù)據(jù),就是 BarcodeXpress類。當(dāng)然其他的 Accusoft 產(chǎn)品可能包含額外的類也可以發(fā)送和接收的圖像數(shù)據(jù)。
如何將ImagXpress對(duì)象的圖像數(shù)據(jù)轉(zhuǎn)移到Barcode Xpress對(duì)象上呢?在Barcode Xpress組件中,你也可以使用下面這個(gè)方法輕松的實(shí)現(xiàn)復(fù)制或是轉(zhuǎn)移ImagXpress對(duì)象的圖像數(shù)據(jù)到Barcode Xpress對(duì)象上。
示例:
// Create the BarcodeXpress component BarcodeXpress barcodeXpress1 = new BarcodeXpress(); // The SetSolutionName, SetSolutionKey and possibly the SetOEMLicenseKey method must be // called to distribute the runtime. Note that the SolutionName, SolutionKey, and // OEMLicenseKey values shown below are only examples. barcodeXpress1.Licensing.SetSolutionName("YourSolutionName"); barcodeXpress1.Licensing.SetSolutionKey(12345, 12345, 12345, 12345); barcodeXpress1.Licensing.SetOEMLicenseKey("1.0.AStringForOEMLicensingContactAccusoftSalesForMoreInformation..."); // Set barcode types for which to search barcodeXpress1.reader.BarcodeTypes = SetBarcodeType(); // Call Analyze to detect barcodes in image. // All detected barcodes will be returned to the array of Result objects. Result[] results = barcodeXpress1.reader.Analyze(imageXView1.Image); // See if we returned any results if (results.Length > 0) { // Display the results string strResult; strResult = ""; for (int i = 0; i < results.Length; i++) { Result curResult = (Accusoft.BarcodeXpressSdk.Result)results.GetValue(i); strResult += "Symbol #" + i + "\r" + "Type = " + curResult.BarcodeName + "\r"; strResult += "Value=" + curResult.BarcodeValue + "\r"; string strMsg = "Symbol #" + i + " - " + curResult.BarcodeData; } strResult += "\n"; MessageBox.Show(strResult, "Barcode Result", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { MessageBox.Show("No Barcodes Found", "Barcode Result", MessageBoxButtons.OK, MessageBoxIcon.Warning); } // Dispose the instance of the Barcode Xpress component. barcodeXpress1.Dispose();
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自:慧都控件