1
0
Fork 0
mirror of https://github.com/seiichiro0185/sailotp.git synced 2024-05-18 00:20:55 +00:00
harbour-sailotp/src/qzxing/imagehandler.h

24 lines
637 B
C
Raw Normal View History

2014-02-16 12:46:57 +00:00
#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