00001
00002
00003 #ifndef FILTERMAGICK_H
00004 #define FILTERMAGICK_H
00005
00006 #include <qstring.h>
00007 #include <qstringlist.h>
00008 #include <qpixmap.h>
00009
00010 #ifdef HAVE_MAGICK
00011 #include <Magick++.h>
00012 #include <iostream>
00013 using namespace std;
00014 using namespace Magick;
00015 #endif
00016
00017 class FilterMAGICK
00018 {
00019 public:
00020 FilterMAGICK(QString filename=0);
00021 bool fileOK() { return fileok; }
00022 QString description() { return QString("TODO"); }
00023 #ifdef HAVE_MAGICK
00024 int width() { return image.columns(); }
00025 int height() { return image.rows(); }
00026 int depth() { return image.depth(); }
00027 int numBytes() { return image.fileSize(); }
00028 double gamma() { return image.gamma(); }
00029
00030
00031 QPixmap Pixmap();
00032 #endif
00033 private:
00034 #ifdef HAVE_MAGICK
00035 Image image;
00036 #endif
00037 QString filename;
00038 bool fileok;
00039 };
00040
00041 #endif //FILTERMAGICK_H