216e1a9f71
Commit the original Caesium 1.7.0 codebase with some adjustment. You can also get the original source at: https://sourceforge.net/projects/caesium/files/1.7.0/ Since the file names listed in the Qt resource file have encoding issue which can cause compile failure, these files get removed. Adjustments: + .gitignore M icons.qrc - *.pro.user(.*) - icons/language/*.png
16 lines
317 B
C++
16 lines
317 B
C++
#ifndef IMAGERESIZE_H
|
|
#define IMAGERESIZE_H
|
|
|
|
#include <QImage>
|
|
|
|
class ImageResize
|
|
{
|
|
public:
|
|
ImageResize();
|
|
QImage fixedResize(QImage image, int width, int height, bool keepRatio, bool doNotEnlarge);
|
|
QImage pergentageResize(QImage image, int width, int height);
|
|
|
|
};
|
|
|
|
#endif // IMAGERESIZE_H
|