Go to the documentation of this file.
3 #include "QInputDialog"
7 this->alphaInner = QInputDialog::getInt(
nullptr,
"Inner Alpha Value",
"Value:", 0,0,255,1);
8 this->edgeWidth = QInputDialog::getInt(
nullptr,
"Outer edge width",
"Value:", 0,1,255,1);
15 void IntelliToolRectangle::drawRectangle(QPoint otherCornor){
16 int xMin = std::min(originCornor.x(), otherCornor.x());
17 int xMax = std::max(originCornor.x(), otherCornor.x());
19 int yMin = std::min(originCornor.y(), otherCornor.y());
20 int yMax = std::max(originCornor.y(), otherCornor.y());
23 clr.setAlpha(alphaInner);
24 for(
int y=yMin; y<=yMax; y++){
43 this->originCornor=QPoint(x,y);
44 drawRectangle(originCornor);
63 this->edgeWidth+=value;
64 if(this->edgeWidth<=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.
QColor getSecondColor()
A function to read the secondary selected color.
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.