Go to the documentation of this file.
52 PaintingArea(
int maxWidth=600,
int maxHeight=600, QWidget*parent =
nullptr);
66 bool open(
const QString &filePath);
73 bool save(
const QString &filePath,
const char*fileFormat);
119 void floodFill(
int r,
int g,
int b,
int a);
203 void setLayerDimensions(
int maxWidth,
int maxHeight);
204 void selectLayerUp();
205 void selectLayerDown();
216 std::vector<LayerObject> layerBundle;
219 void drawLayers(
bool forSaving=
false);
221 void resizeLayer(QImage*image_res,
const QSize &newSize);
225 void createTempTopLayer(
int idx);
int getWidthOfActive()
The getWidthOfActive gets the horizontal dimensions of the active layer.
IntelliImage * getImageOfActiveLayer()
void mouseReleaseEvent(QMouseEvent *event) override
void createRectangleTool()
bool save(const QString &filePath, const char *fileFormat)
The save method is used for exporting the current project as one picture.
void setLayerAlpha(int idx, int alpha)
The setAlphaOfLayer method sets the alpha value of a specific layer.
void setLayerActive(int idx)
The setLayerToActive method marks a specific layer as active.
The IntelliPhotoGui class handles the graphical user interface for the intelliPhoto program.
void floodFill(int r, int g, int b, int a)
The floodFill method fills a the active layer with a given color.
void deleteLayer(int idx)
The deleteLayer method removes a layer at a given idx.
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 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.
int addLayerAt(int idx, int width, int height, int widthOffset=0, int heightOffset=0, IntelliImage::ImageType type=IntelliImage::ImageType::RASTERIMAGE)
The addLayerAt adds a layer to the current project/ painting area at a specific position in the layer...
IntelliImage::ImageType getTypeOfImageRealLayer()
~PaintingArea() override
This deconstructor is used to clear up the memory and remove the currently active window.
void mouseMoveEvent(QMouseEvent *event) override
int getNumberOfActiveLayer()
void slotDeleteActiveLayer()
The slotDeleteActiveLayer method handles the deletion of the active layer.
bool open(const QString &filePath)
The open method is used for loading a picture into the current layer.
void moveActiveLayer(int idx)
The moveActiveLayer moves the active layer to a specific position in the layer stack.
IntelliColorPicker colorPicker
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
std::vector< QPoint > getPolygonDataOfRealLayer()
IntelliToolsettings Toolsettings
void resizeEvent(QResizeEvent *event) override
void colorPickerSwapColors()
The colorPickerSwitchColor swaps the primary color with the secondary drawing color.
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.
int addLayer(int width, int height, int widthOffset=0, int heightOffset=0, IntelliImage::ImageType type=IntelliImage::ImageType::RASTERIMAGE)
The addLayer adds a layer to the current project/ painting area.
ImageType
The Types, which an Image can be.