29 void IntelliShapedImage::calculateVisiblity(){
55 clr.setAlpha(std::min(255, clr.alpha()));
70 copy = copy.convertToFormat(QImage::Format_ARGB32);
72 for(
int y = 0; y<copy.height(); y++) {
73 for(
int x = 0; x<copy.width(); x++) {
74 QColor clr = copy.pixelColor(x,y);
75 clr.setAlpha(std::min(alpha,clr.alpha()));
76 copy.setPixelColor(x,y, clr);
80 copy = copy.convertToFormat(QImage::Format_Indexed8);
82 return copy.scaled(displaySize,Qt::IgnoreAspectRatio);
87 this->polygonData.clear();
89 this->polygonData.clear();
91 this->polygonData.push_back(QPoint(element.x(), element.y()));