caesium/imageresize.h
Gary Wang 216e1a9f71 init commit that compiles
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
2021-09-10 10:03:13 +08:00

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