SilentEye 0.4.1
|
00001 // This file is part of SilentEye. 00002 // 00003 // SilentEye is free software: you can redistribute it and/or modify 00004 // it under the terms of the GNU General Public License as published by 00005 // the Free Software Foundation, either version 3 of the License, or 00006 // (at your option) any later version. 00007 // 00008 // SilentEye is distributed in the hope that it will be useful, 00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 // GNU General Public License for more details. 00012 // 00013 // You should have received a copy of the GNU General Public License 00014 // along with SilentEye. If not, see <http://www.gnu.org/licenses/>. 00015 00016 #ifndef IMAGE_H_ 00017 #define IMAGE_H_ 00018 00019 #include "media.h" 00020 00021 #include <QPixmap> 00022 #include <QPointer> 00023 #include <QString> 00024 #include <QDir> 00025 #include "encodeddata.h" 00026 00027 namespace SilentEyeFramework { 00028 00030 class Image : public QPixmap, public Media 00031 { 00032 protected: 00034 int m_width; 00036 int m_height; 00038 int m_quality; 00039 00040 public: 00041 Image(); 00042 ~Image(); 00043 Image(const QString& filepath); 00044 Image(const QPixmap& pixmap, QString filePath="Pixmap"); 00045 Image(const Image& img); 00046 Image(Image* img); 00047 00048 int imgWidth() const; 00049 int imgHeight() const; 00050 int quality() const; 00051 }; 00052 00053 } 00054 00055 #endif