Go to the documentation of this file.
34 copy = copy.convertToFormat(QImage::Format_ARGB32);
36 for(
int y = 0; y<copy.height(); y++) {
37 for(
int x = 0; x<copy.width(); x++) {
38 QColor clr = copy.pixelColor(x,y);
39 clr.setAlpha(std::min(alpha, clr.alpha()));
40 copy.setPixelColor(x,y, clr);
44 copy = copy.convertToFormat(QImage::Format_Indexed8);
46 return copy.scaled(displaySize,Qt::IgnoreAspectRatio);
50 qDebug() <<
"Raster Image has no polygon data " << polygonData.size() <<
"\n";
virtual ~IntelliRasterImage() override
An Destructor.
IntelliRasterImage(int width, int height, bool fastRendererOn)
The Construcor of the IntelliRasterImage. Given the Image dimensions.
virtual QImage getDisplayable(const QSize &displaySize, int alpha) override
A function returning the displayable ImageData in a requested transparence and size.
ImageType TypeOfImage
The Type, an Image is.
bool fastRenderer
fastRenderer is the flag that represents the usage of 8bit pictures.
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.
The IntelliRasterImage manages a RASTERIMAGE.