Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
qimagesource.h
Go to the documentation of this file.
1 #ifndef QIMAGELUMINANCESOURCE_H
2 #define QIMAGELUMINANCESOURCE_H
3 
4 #include <QImage>
5 #include <QString>
6 #include <zxing/LuminanceSource.h>
7 
8 using namespace zxing;
9 
10 class QImageLuminanceSource : public LuminanceSource
11 {
12 public:
13  QImageLuminanceSource(QImage& image);
14  ArrayRef<char> getMatrix() const;
15  ArrayRef<char> getRow(int y, ArrayRef<char> row) const;
16 
17 private:
18  QImage image;
19 };
20 
21 #endif //QIMAGELUMINANCESOURCE_H