imagezoomandgray.h 790 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef IMAGEZOOMANDGRAY_H
  2. #define IMAGEZOOMANDGRAY_H
  3. #include <QObject>
  4. #include <QFile>
  5. #include <QFileInfoList>
  6. #include <QDir>
  7. #include <QDebug>
  8. #include <QPixmap>
  9. #include <QApplication>
  10. class ImageZoomAndGray : public QObject
  11. {
  12. Q_OBJECT
  13. public:
  14. QList<QString> imageFileNames;
  15. explicit ImageZoomAndGray(QObject* parent = nullptr);
  16. int zoomWidth() const;
  17. void setZoomWidth(int zoomWidth);
  18. int zoomHeight() const;
  19. void setZoomHeight(int zoomHeight);
  20. QString exportFolder() const;
  21. void setExportFolder(const QString& exportFolder);
  22. void startProc();
  23. void openFolder(QString path);
  24. QImage toGray(QImage image);
  25. signals:
  26. private:
  27. int m_zoomWidth;
  28. int m_zoomHeight;
  29. QString m_exportFolder;
  30. };
  31. #endif // IMAGEZOOMANDGRAY_H