`
夏雪纷纷
  • 浏览: 6715 次
社区版块
存档分类
最新评论

Barcode Xpress使用教程:如何为条码识别获取图像

阅读更多

    条码控件Barcode Xpress可 以处理1位黑白图像、8位灰度图像以及24位彩色图像。在Barcode Xpress中可以使用ColorDepth方法或是在Barcode Xpress组件中的其他的方法可以转换其余的图像格式,如果你使用的是ImageGear的话,那么直接使用ConvertColorSpace方法就 可以了。

C++示例:使用Barcode Xpress导入图像

    //load a 1BPP, black and white image into the ImagXpress control  
          m_pImagXpress->FileName = “C:\\testbarcodeimage.tif”;  
        
          // Copy the hDib  
          long hDib = m_pImagXpress->CopyDIB();  
        
          // Analyze the barcode  
          m_pBarcodeXpress->AnalyzehDib(hDib);  
        
          // Free the hDib  
          GlobalFree(LongToHandle(hDib));  

 VB示例:使用Barcode Xpress导入图像

    ' Load the image  
        ImagXpress1.FileName = "C:\testbarcodeimage.tif"  
        
        ' Copy the hDib  
        hDib = ImagXpress1.CopyDIB  
        
        ' Analyze the barcode  
        BarcodeXpress1.AnalyzehDib hDib  
        
        ' Free the hDib  
        GlobalFree hDib  

 C++示例:使用ImageGear导入图像

    // Create an ImageGear page  
          GearCORELib::IIGPagePtr page;  
          page = g_pIGCore->CreatePage();  
       
          // Load the page from file  
          m_pIGFormats->LoadPageFromFile(page, fileName, 0);  
       
          // Export the page to a dib  
          GearCORELib::IIGPlatformDIBPtr platformDib = page->PlatformDIBExport(GearCORELib::IG_DIB_EXPORT_FORMAT_WINDOWS, false, 0, 0, page->ImageWidth, page->ImageHeight, 0);  
          HGLOBAL hDib = LongToHandle(platformDib->DIBPtrGet());  
       
          // Read the barcodes  
          pBarcodeXpress->AnalyzehDib(HandleToLong(hDib));  

 VB示例:使用ImageGear导入图像

    ' Load the Page  
        Dim page As New IGPage  
        IGFormatsCtl1.LoadPageFromFile page, fileName, 0  
        
        ' Export the platform dib from the page  
        Dim platformDib As IGPlatformDIB  
        Set platformDib = page.PlatformDIBExport(IG_DIB_EXPORT_FORMAT_WINDOWS, False, 0, 0, page.ImageWidth, page.ImageHeight, 0)  
        
        ' Get the dib handle  
        Dim hDib As Long  
        hDib = platformDib.DIBPtrGet  
        
        ' Read the barcodes on the image  
        bcx8.AnalyzehDib hDib  

 

分享到:
评论

相关推荐

    Barcode Xpress使用教程:条形码识别

    总的来说,Barcode Xpress使用教程详细介绍了如何通过设置属性和使用方法来实现对图像中1D和2D条码的识别。通过对这些知识点的学习和掌握,开发者可以更好地将条码识别功能集成到自己的应用程序中,以满足各种业务...

    Barcode Xpress 教程:如何为条码识别获取图像

    Barcode Xpress是一款功能强大的条码识别和处理软件,它提供了一系列的方法和属性来帮助用户获取和处理图像以进行条码识别。在进行条码识别之前,通常需要对图像进行预处理,以确保识别过程的准确性和效率。Barcode ...

    Barcode Xpress 教程:如何获得条码检测结果

    Barcode Xpress是一款能够检测和识别1D和2D条形码的高级控件,它能自动在图像中查找并识别所有的条码,并返回包含详细信息的检测结果。这对于开发人员而言是一个非常实用的工具,因为它能够轻松地集成到Windows应用...

    Barcode Xpress教程:创建2D条形码

    本教程将重点介绍如何使用Barcode Xpress创建2D条形码,包括PDF417、DataMatrix和QRCode三种常见的2D条码格式。 首先,使用Barcode Xpress创建2D条形码需要通过编程方式实现。在编程中,需要对Barcode Xpress控件...

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

    从给定文件中提取的知识点如下: ...以上知识点涉及了Barcode Xpress组件在图像数据处理和条码识别方面的主要操作流程和编程实践,这些知识对于需要在应用程序中集成条码识别功能的开发人员来说非常重要。

    Smartscan Xpress Barcode—用于生成和识别一维、二维条码

    Smartscan Xpress Barcode能够方便你创建应用程序来读取一维(线性的)和二维条码。它为你提供了许多预处理功能使你在条码分析之前对图像进行操作和整理,包括镜像(mirroring)、交换(flipping), 变焦(zooming)...

    Pegasus SmartScan Xpress Barcode v4.0.37.0 特别版

    Pegasus SmartScan Xpress Barcode v4.0.37.0是一款专为.NET环境设计的条码识别开发工具包,它集成了先进的图像处理技术和高效的条码识别算法,旨在帮助开发者轻松集成条码识别功能到各类应用程序中。该版本特别版的...

Global site tag (gtag.js) - Google Analytics