-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjpegimage.h
More file actions
40 lines (28 loc) · 957 Bytes
/
jpegimage.h
File metadata and controls
40 lines (28 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef JPEGIMAGE_H
#define JPEGIMAGE_H
#include "jpegdecode.h"
#include "jpegencode.h"
class JPEGIMAGESHARED_EXPORT JPEGImage: public ExportImportInterface {
Q_INTERFACES(ExportImportInterface)
Q_OBJECT
private:
QTime myTimer;
QString imageFilter;//Image extension used by this program
QStringList extensionList;//All possible extensions of JPEG file
public:
JPEGImage();
~JPEGImage();
QString name() const { return "JPEG Image"; }
QString author() const { return QString::fromUtf8("Amir Duran"); }
QString version() const { return "1.0"; }
void init(QWidget* );
void deinit();
//import
QString filter() const;
ImageStatePtr importImage(const QString& filename);
//export
QStringList extensions() const;
bool exportImage(const ImageStatePtr imageState, const QString& filename);
bool exportImage(const QImage& image, const QString& filename);
};
#endif // JPEGIMAGE_H