Go to the documentation of this file.
4 #include "QColorDialog"
5 #include "QInputDialog"
9 this->penWidth = QInputDialog::getInt(
nullptr,
"Pen width",
"Width:", 1,0, 50, 1);
26 this->point=QPoint(x,y);
46 this->penWidth+=value;
47 if(this->penWidth<=0) {
virtual void drawLine(const QPoint &p1, const QPoint &p2, const QColor &color, const int &penWidth)
A function that draws A Line between two given Points in a given color.
virtual void drawPixel(const QPoint &p1, const QColor &color)
A funtcion used to draw a pixel on the Image with the given Color.
The PaintingArea class manages the methods and stores information about the current painting area,...
QColor getFirstColor()
A function to read the primary selected color.
The IntelliColorPicker manages the selected colors for one whole project.
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.