28 void IntelliShapedImage::calculateVisiblity(){
38 for(
int y = 0; y<
imageData.height(); y++) {
39 for(
int x = 0; x<
imageData.width(); x++) {
51 for(
int y = 0; y<
imageData.height(); y++) {
52 for(
int x = 0; x<
imageData.width(); x++) {
57 clr.setAlpha(std::min(255, clr.alpha()));
72 copy = copy.convertToFormat(QImage::Format_ARGB32);
74 for(
int y = 0; y<copy.height(); y++) {
75 for(
int x = 0; x<copy.width(); x++) {
76 QColor clr = copy.pixelColor(x,y);
77 clr.setAlpha(std::min(alpha,clr.alpha()));
78 copy.setPixelColor(x,y, clr);
82 copy = copy.convertToFormat(QImage::Format_Indexed8);
84 return copy.scaled(displaySize,Qt::IgnoreAspectRatio);
89 this->polygonData.clear();
91 this->polygonData.clear();
93 this->polygonData.push_back(QPoint(element.x(), element.y()));
99 for(
int y = 0; y<
imageData.height(); y++) {
100 for(
int x = 0; x<
imageData.width(); x++) {
110 calculateVisiblity();