mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-15 12:50:33 +02:00
Preprozessor
This commit is contained in:
@@ -10,10 +10,18 @@
|
||||
#include <vector>
|
||||
#include <QPoint>
|
||||
|
||||
#define EXPORT
|
||||
|
||||
PaintingArea::PaintingArea(int maxWidth, int maxHeight, QWidget *parent)
|
||||
:QWidget(parent){
|
||||
this->setUp(maxWidth, maxHeight);
|
||||
|
||||
#ifdef EXPORT
|
||||
this->addLayer(maxWidth, maxHeight);
|
||||
layerStructure[0].image->floodFill(QColor(255,255,255,255));
|
||||
activeLayer=0;
|
||||
#endif
|
||||
#ifndef EXPORT
|
||||
//tetsing
|
||||
this->addLayer(200,200,0,0,ImageType::Shaped_Image);
|
||||
layerStructure[0].image->floodFill(QColor(255,0,0,255));
|
||||
@@ -28,6 +36,7 @@ PaintingArea::PaintingArea(int maxWidth, int maxHeight, QWidget *parent)
|
||||
layerStructure[1].image->floodFill(QColor(0,255,0,255));
|
||||
layerStructure[1].alpha=200;
|
||||
activeLayer=1;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ class PaintingArea : public QWidget
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
PaintingArea(int maxWidth=1000, int maxHeight=800, QWidget *parent = nullptr);
|
||||
PaintingArea(int maxWidth=600, int maxHeight=600, QWidget *parent = nullptr);
|
||||
|
||||
// Handles all events
|
||||
bool openImage(const QString &fileName);
|
||||
|
||||
Reference in New Issue
Block a user