Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

FilterMAGICK.h

Go to the documentation of this file.
00001 //LabPlot : FilterMAGICK.h
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"); }       // 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 // crashes with SVG image
00030 //      int numColors() { return image.colorMapSize(); }
00031         QPixmap Pixmap();
00032 #endif
00033 private:
00034 #ifdef HAVE_MAGICK
00035         Image image;
00036 #endif
00037         QString filename;                       // file
00038         bool fileok;                            // is an image file and readable by ImageMagick
00039 };
00040 
00041 #endif //FILTERMAGICK_H

Generated on Sat Oct 13 21:55:01 2007 for LabPlot by  doxygen 1.4.4