AlbumShaper 1.0a3
jpegTools.h
Go to the documentation of this file.
1//==============================================
2// copyright : (C) 2003-2005 by Will Stokes
3//==============================================
4// This program is free software; you can redistribute it
5// and/or modify it under the terms of the GNU General
6// Public License as published by the Free Software
7// Foundation; either version 2 of the License, or
8// (at your option) any later version.
9//==============================================
10
11#ifndef BACKEND_TOOLS_JPEG_JPEGTOOLS_H
12#define BACKEND_TOOLS_JPEG_JPEGTOOLS_H
13
14class QString;
15class QImage;
16
17//fast scale a Jpeg img using libjpg to intially scale image by power of 2
18bool scaleJPEG(QString fileIn, QImage& scaledImage, int targetWidth, int targetHeight);
19
20//apply lossless transformation on image (rotation or flip)
21bool transformJPEG ( QString fileIn, QString fileOut, TRANSFORM_CODE transformation );
22
23#endif //BACKEND_TOOLS_JPEG_JPEGTOOLS_H
24
TRANSFORM_CODE
Definition imageTools.h:25
bool scaleJPEG(QString fileIn, QImage &scaledImage, int targetWidth, int targetHeight)
Definition jpegTools.cpp:54
bool transformJPEG(QString fileIn, QString fileOut, TRANSFORM_CODE transformation)