Go to the documentation of this file.
36 PaintingArea(
int maxWidth=600,
int maxHeight=600, QWidget *parent =
nullptr);
40 bool open(
const QString &fileName);
41 bool save(
const QString &fileName,
const char *fileFormat);
48 void floodFill(
int r,
int g,
int b,
int a);
81 void setUp(
int maxWidth,
int maxHeight);
82 void activateUpperLayer();
83 void activateLowerLayer();
93 std::vector<LayerObject> layerBundle;
96 void assembleLayers(
bool forSaving=
false);
98 void resizeImage(QImage *image_res,
const QSize &newSize);
102 void createTempLayerAfter(
int idx);
int addLayer(int width, int height, int widthOffset=0, int heightOffset=0, ImageType type=ImageType::Raster_Image)
void mouseReleaseEvent(QMouseEvent *event) override
bool open(const QString &fileName)
void setLayerToActive(int index)
void floodFill(int r, int g, int b, int a)
bool save(const QString &fileName, const char *fileFormat)
void deleteLayer(int index)
void mousePressEvent(QMouseEvent *event) override
void colorPickerSetSecondColor()
void colorPickerSetFirstColor()
void colorPickerSwitchColor()
void mouseMoveEvent(QMouseEvent *event) override
void slotDeleteActiveLayer()
int addLayerAt(int idx, int width, int height, int widthOffset=0, int heightOffset=0, ImageType type=ImageType::Raster_Image)
void moveActiveLayer(int idx)
PaintingArea(int maxWidth=600, int maxHeight=600, QWidget *parent=nullptr)
void slotActivateLayer(int a)
void paintEvent(QPaintEvent *event) override
void setAlphaOfLayer(int index, int alpha)
void resizeEvent(QResizeEvent *event) override
void movePositionActive(int x, int y)