Go to the documentation of this file.
31 for(
int y = 0; y<copy.height(); y++) {
32 for(
int x = 0; x<copy.width(); x++) {
33 QColor clr = copy.pixelColor(x,y);
34 clr.setAlpha(std::min(alpha, clr.alpha()));
35 copy.setPixelColor(x,y, clr);
38 return copy.scaled(displaySize,Qt::IgnoreAspectRatio);
42 qDebug() <<
"Raster Image has no polygon data " << polygonData.size() <<
"\n";
virtual ~IntelliRasterImage() override
An Destructor.
virtual QImage getDisplayable(const QSize &displaySize, int alpha) override
A function returning the displayable ImageData in a requested transparence and size.
QImage imageData
The underlying image data.
An abstract class which manages the basic IntelliImage operations.
virtual IntelliImage * getDeepCopy() override
A function that copys all that returns a [allocated] Image.
virtual void calculateVisiblity() override
A function that calculates the visibility of the image if a polygon is given. [does nothing in Raster...
virtual void setPolygon(const std::vector< QPoint > &polygonData) override
An abstract function that sets the data of the visible Polygon, if needed.
IntelliRasterImage(int weight, int height)
The Construcor of the IntelliRasterImage. Given the Image dimensions.
The IntelliRasterImage manages a Rasterimage.