如何将ImagXpress对象的图像数据转移到Barcode Xpress对象上

删除回忆录丶 提交于 2019-11-29 18:08:07
Barcode Xpress组件内只有一个类支持接收图像数据,就是 BarcodeXpress类。当然其他的 Accusoft 产品可能包含额外的类也可以发送和接收的图像数据。

    如何将ImagXpress对象的图像数据转移到Barcode Xpress对象上呢?在Barcode Xpress组件中,你也可以使用下面这个方法轻松的实现复制或是转移ImagXpress对象的图像数据到Barcode Xpress对象上。

示例:

// 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++)

>> 完整示例代码

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!