36 void IntelliShapedImage::calculateVisiblity(){
46 for(
int y = 0; y<
imageData.height(); y++) {
47 for(
int x = 0; x<
imageData.width(); x++) {
59 for(
int y = 0; y<
imageData.height(); y++) {
60 for(
int x = 0; x<
imageData.width(); x++) {
65 clr.setAlpha(std::min(255, clr.alpha()));
80 copy =
copy.convertToFormat(QImage::Format_ARGB32);
82 for(
int y = 0; y<
copy.height(); y++) {
83 for(
int x = 0; x<
copy.width(); x++) {
84 QColor clr =
copy.pixelColor(x,y);
85 clr.setAlpha(std::min(alpha,clr.alpha()));
86 copy.setPixelColor(x,y, clr);
90 copy =
copy.convertToFormat(QImage::Format_Indexed8);
92 return copy.scaled(displaySize,Qt::IgnoreAspectRatio);
97 this->polygonData.clear();
99 this->polygonData.clear();
101 this->polygonData.push_back(QPoint(element.x(), element.y()));
107 for(
int y = 0; y<
imageData.height(); y++) {
108 for(
int x = 0; x<
imageData.width(); x++) {
118 calculateVisiblity();