Go to the documentation of this file.
50 PaintingArea(
int maxWidth=600,
int maxHeight=600, QWidget *parent =
nullptr);
64 bool open(
const QString &fileName);
71 bool save(
const QString &fileName,
const char *fileFormat);
117 void floodFill(
int r,
int g,
int b,
int a);
190 void setUp(
int maxWidth,
int maxHeight);
191 void activateUpperLayer();
192 void activateLowerLayer();
201 std::vector<LayerObject> layerBundle;
204 void assembleLayers(
bool forSaving=
false);
206 void resizeImage(QImage *image_res,
const QSize &newSize);
209 void createTempLayerAfter(
int idx);
int getWidthOfActive()
The getWidthOfActive gets the horizontal dimensions of the active layer.
ImageType
The Types, which an Image can be.
int addLayer(int width, int height, int widthOffset=0, int heightOffset=0, ImageType type=ImageType::Raster_Image)
The addLayer adds a layer to the current project/ painting area.
void mouseReleaseEvent(QMouseEvent *event) override
void createRectangleTool()
bool open(const QString &fileName)
The open method is used for loading a picture into the current layer.
void setLayerToActive(int index)
The setLayerToActive method marks a specific layer as active.
void floodFill(int r, int g, int b, int a)
The floodFill method fills a the active layer with a given color.
bool save(const QString &fileName, const char *fileFormat)
The save method is used for exporting the current project as one picture.
int getHeightOfActive()
The getHeightOfActive gets the vertical dimensions of the active layer.
void wheelEvent(QWheelEvent *event) override
The PaintingArea class manages the methods and stores information about the current painting area,...
The LayerObject struct holds all the information needed to construct a layer.
void deleteLayer(int index)
The deleteLayer method removes a layer at a given index.
void mousePressEvent(QMouseEvent *event) override
void colorPickerSetSecondColor()
The colorPickerSetSecondColor calls the QTColorPicker to determine the secondary drawing color.
void colorPickerSetFirstColor()
The colorPickerSetFirstColor calls the QTColorPicker to determine the primary drawing color.
void colorPickerSwitchColor()
The colorPickerSwitchColor swaps the primary color with the secondary drawing color.
~PaintingArea() override
This deconstructor is used to clear up the memory and remove the currently active window.
void mouseMoveEvent(QMouseEvent *event) override
void slotDeleteActiveLayer()
The slotDeleteActiveLayer method handles the deletion of the active layer.
int addLayerAt(int idx, int width, int height, int widthOffset=0, int heightOffset=0, ImageType type=ImageType::Raster_Image)
The addLayerAt adds a layer to the current project/ painting area at a specific position in the layer...
void moveActiveLayer(int idx)
The moveActiveLayer moves the active layer to a specific position in the layer stack.
PaintingArea(int maxWidth=600, int maxHeight=600, QWidget *parent=nullptr)
PaintingArea is the constructor of the PaintingArea class, which initiates the working environment.
void createFloodFillTool()
void slotActivateLayer(int a)
The slotActivateLayer method handles the event of selecting one layer as active.
The IntelliColorPicker manages the selected colors for one whole project.
void paintEvent(QPaintEvent *event) override
void setAlphaOfLayer(int index, int alpha)
The setAlphaOfLayer method sets the alpha value of a specific layer.
void resizeEvent(QResizeEvent *event) override
void movePositionActive(int x, int y)
The movePositionActive method moves the active layer to certain position.
An abstract class which manages the basic IntelliImage operations.