Chinaunix首页 | 论坛 | 博客
  • 博客访问: 70000
  • 博文数量: 40
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 368
  • 用 户 组: 普通用户
  • 注册时间: 2013-03-12 16:17
文章分类

全部博文(40)

文章存档

2013年(40)

我的朋友

分类: Windows平台

2013-09-18 09:48:14

  在组件内只有一个类支持接收图像数据,就是 BarcodeXpress类。当然其他的 Accusoft 产品可能包含额外的类也可以发送和接收的图像数据。

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

示例:

  1. // Create the BarcodeXpress component  
  2. BarcodeXpress barcodeXpress1 = new BarcodeXpress();  
  3. // The SetSolutionName, SetSolutionKey and possibly the SetOEMLicenseKey method must be  
  4. // called to distribute the runtime. Note that the SolutionName, SolutionKey, and  
  5. // OEMLicenseKey values shown below are only examples.  
  6. barcodeXpress1.Licensing.SetSolutionName("YourSolutionName");  
  7. barcodeXpress1.Licensing.SetSolutionKey(12345, 12345, 12345, 12345);  
  8. barcodeXpress1.Licensing.SetOEMLicenseKey("1.0.AStringForOEMLicensingContactAccusoftSalesForMoreInformation...");  
  9.     
  10. // Set barcode types for which to search  
  11. barcodeXpress1.reader.BarcodeTypes = SetBarcodeType();  
  12.     
  13. // Call Analyze to detect barcodes in image.  
  14. // All detected barcodes will be returned to the array of Result objects.  
  15. Result[] results = barcodeXpress1.reader.Analyze(imageXView1.Image);  
  16.     
  17. // See if we returned any results  
  18. if (results.Length > 0)  
  19. {  
  20.      // Display the results  
  21.      string strResult;  
  22.      strResult = "";  
  23.      for (int i = 0; i < results.Length; i++) 

>>

阅读(538) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~