00001 //============================================== 00002 // copyright : (C) 2003 by Will Stokes 00003 //============================================== 00004 // This program is free software; you can redistribute it 00005 // and/or modify it under the terms of the GNU General 00006 // Public License as published by the Free Software 00007 // Foundation; either version 2 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // As a special exception, Will Stokes gives permission to 00011 // link this program with Qt non-commercial edition, and 00012 // distribute the resulting executable, without including the 00013 // source code for the Qt non-commercial edition in the 00014 // source distribution. 00015 //============================================== 00016 00017 #ifndef BACKEND_IMAGETOOLS_H 00018 #define BACKEND_IMAGETOOLS_H 00019 00020 //-------------------- 00021 //forward declarations 00022 //-------------------- 00023 class QString; 00024 class QImage; 00025 00027 void resizeImage(int originalWidth, 00028 int originalHeight, 00029 int maxWidth, 00030 int maxHeight, 00031 int& newWidth, 00032 int& newHeight); 00033 00035 void copyFile(QString oldFile, 00036 QString newFile); 00037 00039 void createImages(QImage* fullImage, 00040 QImage** slideshowImage, 00041 QImage** thumbnailImage, 00042 QImage** paddedThumbnailImage, 00043 int &slideshowWidth, 00044 int &slideshowHeight); 00045 00046 #endif //BACKEND_IMAGETOOLS_H