91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 7.8MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2023-09-25
  • 語言: 其他
  • 標簽: Qt界面??

資源簡介

二維碼解析。 能夠解析出二維碼的含義。

資源截圖

代碼片段和文件信息

#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)?&&?(sourceImage.width()?>?maxWidth?||?sourceImage.height()?>?maxHeight))
????????image?=?sourceImage.scaled(
????????????????????maxWidth?!=?-1???maxWidth?:?sourceImage.width()
????????????????????maxHeight?!=?-1???maxHeight?:?sourceImage.height()
????????????????????Qt::KeepAspectRatio
????????????????????smoothTransformation???Qt::SmoothTransformation?:?Qt::FastTransformation);
????else
????????image?=?sourceImage;

????return?new?CameraImageWrapper(image);
}

int?CameraImageWrapper::getWidth()?const
{
????return?image.width();
}

int?CameraImageWrapper::getHeight()?const
{
????return?image.height();
}

unsigned?char?CameraImageWrapper::getPixel(int?x?int?y)?const
{
????QRgb?pixel?=?image.pixel(xy);

????return?qGray(pixel);//((qRed(pixel)?+?qGreen(pixel)?+?qBlue(pixel))?/?3);
}

unsigned?char*?CameraImageWrapper::copyMatrix()?const
{
????unsigned?char*?newMatrix?=?(unsigned?char*)malloc(image.width()*image.height()*sizeof(unsigned?char));

????int?cnt?=?0;
????for(int?i=0;?i????{
????????for(int?j=0;?j????????{
????????????newMatrix[cnt++]?=?getPixel(ij);
????????}
????}

????return?newMatrix;
}

//bool?CameraImageWrapper::setImage(QString?fileName?int?maxWidth?int?maxHeight)
//{
//????bool?isLoaded?=?image.load(fileName);

//????if(!isLoaded)
//????????return?false;

//????width?=?image.width();
//????height?=?image.height();

//????scale(maxWidth?maxHeight);

//????return?true;
//}

//bool?CameraImageWrapper::setImage(QImage?newImage?int?maxWidth?int?maxHeight)
//{
//????if(newImage.isNull())
//????????return?false;

//????image?=?newImage.copy();

//????width?=?image.width();
//????height?=?image.height();

//????scale(maxWidth?maxHeight);

//????return?true;
//}

QImage?CameraImageWrapper::grayScaleImage(QImage::Format?f)
{
????QImage?tmp(image.width()?image.height()?f);
????for(int?i=0;?i????{
????????for(int?j=0;?j????????{
????????????int?pix?=?(int)getPixel(ij);
????????????tmp.setPixel(ij?qRgb(pix?pixpix));
????????}
????}

????return?tmp;
}

QImage?CameraI

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-12-27?19:54??QZXing\
?????目錄???????????0??2017-12-27?19:54??QZXing\Bin\
?????文件???????43008??2009-06-23?10:42??QZXing\Bin\libgcc_s_dw2-1.dll
?????文件???????11362??2009-01-11?02:32??QZXing\Bin\mingwm10.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
?????文件?????1280000??2015-08-21?15:28??QZXing\Bin\QZXing.dll
?????文件?????????422??2015-08-22?20:20??QZXing\Bin\test.png
?????文件???????77824??2015-08-22?20:29??QZXing\Bin\testQZXing.exe
?????目錄???????????0??2017-12-27?19:54??QZXing\QZXingLib\
?????目錄???????????0??2017-12-27?19:54??QZXing\QZXingLib\QZXing\
?????文件?????????374??2015-08-21?14:01??QZXing\QZXingLib\QZXingLib.pro
?????文件???????18538??2015-08-22?20:13??QZXing\QZXingLib\QZXingLib.pro.user
?????文件???????17887??2015-08-21?16:45??QZXing\QZXingLib\QZXingLib.pro.user.3.2-pre1
?????文件????????4842??2014-01-22?14:59??QZXing\QZXingLib\QZXing\CameraImageWrapper.cpp
?????文件????????1075??2014-01-22?14:59??QZXing\QZXingLib\QZXing\CameraImageWrapper.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
?????文件????????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
?????目錄???????????0??2017-12-27?19:54??QZXing\QZXingLib\QZXing\zxing\
?????目錄???????????0??2017-12-27?19:54??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
............此處省略267個文件信息

評論

共有 條評論