• 大小: 7.57M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-01-29
  • 语言: C/C++
  • 标签: qt  二维码  解码  

资源简介

利用zxing实现由文本到二维码图片的转换

资源截图

代码片段和文件信息

#include “CameraImageWrapper.h“
#include 
#include 
#include 

CameraImageWrapper::CameraImageWrapper() : LuminanceSource(00)
{
}

CameraImageWrapper::CameraImageWrapper(const QImage &sourceImage) : LuminanceSource(sourceImage.width() sourceImage.height())
{
    image = sourceImage.copy();
}

CameraImageWrapper::CameraImageWrapper(CameraImageWrapper& otherInstance) : LuminanceSource(otherInstance.getWidth() otherInstance.getHeight())
{
    image = otherInstance.getOriginalImage().copy();
}

CameraImageWrapper::~CameraImageWrapper()
{
}

CameraImageWrapper *CameraImageWrapper::Factory(const QImage &sourceImage int maxWidth int maxHeight bool smoothTransformation)
{
    QImage image;
    if((maxWidth != 1 || maxHeight != 1

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-08-22 20:42  QZXing\
     目录           0  2015-08-22 20:28  QZXing\Bin\
     文件     1280000  2015-08-21 15:28  QZXing\Bin\QZXing.dll
     文件     2892800  2015-04-15 12:02  QZXing\Bin\QtCore4.dll
     文件     3411456  2012-11-26 17:29  QZXing\Bin\QtDeclarative4.dll
     文件    10153984  2012-11-26 16:46  QZXing\Bin\QtGui4.dll
     文件       43008  2009-06-23 10:42  QZXing\Bin\libgcc_s_dw2-1.dll
     文件       11362  2009-01-11 02:32  QZXing\Bin\mingwm10.dll
     文件         422  2015-08-22 20:20  QZXing\Bin\test.png
     文件       77824  2015-08-22 20:29  QZXing\Bin\testQZXing.exe
     目录           0  2015-08-22 20:13  QZXing\QZXingLib\
     目录           0  2015-08-22 20:11  QZXing\QZXingLib\QZXing\
     文件        4842  2014-01-22 14:59  QZXing\QZXingLib\QZXing\CameraImageWrapper.cpp
     文件        1075  2014-01-22 14:59  QZXing\QZXingLib\QZXing\CameraImageWrapper.h
     文件        4647  2014-01-22 14:59  QZXing\QZXingLib\QZXing\QZXing.h
     文件       12421  2014-03-16 13:59  QZXing\QZXingLib\QZXing\QZXing.pri
     文件         258  2013-08-02 17:06  QZXing\QZXingLib\QZXing\QZXing_global.h
     文件        1323  2013-08-02 17:06  QZXing\QZXingLib\QZXing\imagehandler.cpp
     文件         637  2013-08-02 17:06  QZXing\QZXingLib\QZXing\imagehandler.h
     文件        5112  2014-01-22 14:59  QZXing\QZXingLib\QZXing\qzxing.cpp
     目录           0  2015-08-22 20:11  QZXing\QZXingLib\QZXing\zxing\
     目录           0  2015-08-22 20:11  QZXing\QZXingLib\QZXing\zxing\bigint\
     文件       12075  2013-08-02 17:06  QZXing\QZXingLib\QZXing\zxing\bigint\BigInteger.cc
     文件        7119  2013-08-02 17:06  QZXing\QZXingLib\QZXing\zxing\bigint\BigInteger.hh
     文件        1900  2013-08-02 17:06  QZXing\QZXingLib\QZXing\zxing\bigint\BigIntegerAlgorithms.cc
     文件         851  2013-08-02 17:06  QZXing\QZXingLib\QZXing\zxing\bigint\BigIntegerAlgorithms.hh
     文件         250  2013-08-02 17:06  QZXing\QZXingLib\QZXing\zxing\bigint\BigIntegerLibrary.hh
     文件        1565  2013-08-02 17:06  QZXing\QZXingLib\QZXing\zxing\bigint\BigIntegerUtils.cc
     文件        2643  2013-08-02 17:06  QZXing\QZXingLib\QZXing\zxing\bigint\BigIntegerUtils.hh
     文件       22807  2013-08-02 17:06  QZXing\QZXingLib\QZXing\zxing\bigint\BigUnsigned.cc
     文件       15172  2013-08-02 17:06  QZXing\QZXingLib\QZXing\zxing\bigint\BigUnsigned.hh
............此处省略267个文件信息

评论

共有 条评论