AlbumShaper
1.0a3
|
00001 //============================================== 00002 // copyright : (C) 2003-2005 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 00011 #ifndef BACKEND_TOOLS_JPEG_JPEGTOOLS_H 00012 #define BACKEND_TOOLS_JPEG_JPEGTOOLS_H 00013 00014 class QString; 00015 class QImage; 00016 00017 //fast scale a Jpeg img using libjpg to intially scale image by power of 2 00018 bool scaleJPEG(QString fileIn, QImage& scaledImage, int targetWidth, int targetHeight); 00019 00020 //apply lossless transformation on image (rotation or flip) 00021 bool transformJPEG ( QString fileIn, QString fileOut, TRANSFORM_CODE transformation ); 00022 00023 #endif //BACKEND_TOOLS_JPEG_JPEGTOOLS_H 00024