Go to the documentation of this file.
3 #include "QColorDialog"
4 #include "QInputDialog"
25 this->lineStartingPoint=QPoint(x,y);
48 QPoint p1 =lineStartingPoint.x() <= next.x() ? lineStartingPoint : next;
49 QPoint p2 =lineStartingPoint.x() < next.x() ? next : lineStartingPoint;
50 int m = static_cast<int>(static_cast<float>(p2.y()-p1.y())/static_cast<float>(p2.x()-p1.x())+0.5f);
51 int c = lineStartingPoint.y()-lineStartingPoint.x()*m;
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.
The PaintingArea class manages the methods and stores information about the current painting area,...
virtual void drawPoint(const QPoint &p1, const QColor &color, const int &penWidth)
A.
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.
virtual void drawPlain(const QColor &color)
A function that clears the whole image in a given Color.