image orientation

This commit is contained in:
Manuel
2019-01-21 22:16:41 +01:00
parent 39047e6470
commit 34a6394ee8
5 changed files with 417 additions and 10 deletions

View File

@@ -2,6 +2,7 @@
#define MAINWINDOW_H
#include <QMainWindow>
#include <QPixmap>
namespace Ui {
class MainWindow;
@@ -25,6 +26,11 @@ private:
QLabel *image;
std::string currentImage;
void updateImage();
int getImageRotation();
QPixmap getRotatedPixmap(const QPixmap& p);
QPixmap getScaledPixmap(const QPixmap& p);
void drawBackground(const QPixmap& originalSize, const QPixmap& scaled);
};
#endif // MAINWINDOW_H