mirror of https://github.com/status-im/qzxing.git
24 lines
614 B
C
24 lines
614 B
C
|
#ifndef IMAGEHANDLER_H
|
||
|
#define IMAGEHANDLER_H
|
||
|
|
||
|
#include <QObject>
|
||
|
#include <QImage>
|
||
|
|
||
|
class ImageHandler : public QObject
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
explicit ImageHandler(QObject *parent = 0);
|
||
|
|
||
|
QImage extractQImage(QObject *imageObj,
|
||
|
const double offsetX = 0 , const double offsetY = 0,
|
||
|
const double width = 0, const double height = 0);
|
||
|
|
||
|
public slots:
|
||
|
void save(QObject *item, const QString &path,
|
||
|
const double offsetX = 0, const double offsetY = 0,
|
||
|
const double width = 0, const double height = 0);
|
||
|
};
|
||
|
|
||
|
#endif // IMAGEHANDLER_H
|