Implemented LAyer structure

alpha interpolation for saving is missing
resizing is missing
This commit is contained in:
Sonaion
2019-12-05 14:18:42 +01:00
parent 2ded50dfa3
commit ec650171e9
40 changed files with 632 additions and 4950 deletions

View File

@@ -37,11 +37,21 @@ public:
void setPenWidth(int newWidth);
int penWidth() const { return myPenWidth; }
QPixmap getAsPixmap();
public slots:
// Events to handle
void clearImage();
void clearImage(int r, int g, int b);
void activate(int a);
void setAlpha(int a);
void getMoveUp(int a);
void getMoveDown(int a);
void getMoveRight(int a);
void getMoveLeft(int a);
void getMoveLayerUp();
void getMoveLayerDown();
//void setUp helper for konstruktor
void setUp(int maxWidth, int maxHeight);
protected:
@@ -73,7 +83,7 @@ private:
std::vector<LayerObject> layerStructure;
int activeLayer=-1;
void assembleLayers();
void assembleLayers(bool forSaving=false);
void drawLineTo(const QPoint &endPoint);
void resizeImage(QImage *image_res, const QSize &newSize);