11 #ifndef BACKEND_TOOLS_IMAGETOOLS_H 12 #define BACKEND_TOOLS_IMAGETOOLS_H 33 bool isJpeg(
const char* filename);
38 int idealWidth,
int idealHeight,
43 QImage& slideshowImage, QImage& thumbnailImage);
49 bool scaleImage( QString fileIn, QString fileOut,
50 int newWidth,
int newHeight );
53 bool scaleImage(QString fileIn, QImage& scaledImage,
int targetWidth,
int targetHeight);
65 void RGBtoHSV(
double r,
double g,
double b,
66 double *h,
double *s,
double *v );
69 void HSVtoRGB(
double *r,
double *g,
double *
b,
70 double h,
double s,
double v );
72 #endif //BACKEND_TOOLS_IMAGETOOLS_H