29 void IntelliShapedImage::calculateVisiblity(){
39 for(
int y = 0; y<
imageData.height(); y++) {
40 for(
int x = 0; x<
imageData.width(); x++) {
52 for(
int y = 0; y<
imageData.height(); y++) {
53 for(
int x = 0; x<
imageData.width(); x++) {
58 clr.setAlpha(std::min(255, clr.alpha()));
73 copy = copy.convertToFormat(QImage::Format_ARGB32);
75 for(
int y = 0; y<copy.height(); y++) {
76 for(
int x = 0; x<copy.width(); x++) {
77 QColor clr = copy.pixelColor(x,y);
78 clr.setAlpha(std::min(alpha,clr.alpha()));
79 copy.setPixelColor(x,y, clr);
83 copy = copy.convertToFormat(QImage::Format_Indexed8);
85 return copy.scaled(displaySize,Qt::IgnoreAspectRatio);
90 this->polygonData.clear();
92 this->polygonData.clear();
94 this->polygonData.push_back(QPoint(element.x(), element.y()));
100 for(
int y = 0; y<
imageData.height(); y++) {
101 for(
int x = 0; x<
imageData.width(); x++) {
111 calculateVisiblity();