Go to the documentation of this file.
43 copy =
copy.convertToFormat(QImage::Format_ARGB32);
45 for(
int y = 0; y<
copy.height(); y++) {
46 for(
int x = 0; x<
copy.width(); x++) {
47 QColor clr =
copy.pixelColor(x,y);
48 clr.setAlpha(std::min(alpha, clr.alpha()));
49 copy.setPixelColor(x,y, clr);
53 copy =
copy.convertToFormat(QImage::Format_Indexed8);
55 return copy.scaled(displaySize,Qt::IgnoreAspectRatio);
63 return std::vector<QPoint>();
virtual ~IntelliRasterImage() override
An Destructor.
IntelliRasterImage(int width, int height, bool fastRendererOn)
The Construcor of the IntelliRasterImage. Given the Image dimensions.
IntelliRasterImage * copy(const IntelliRasterImage &image)
bool fastRenderering
fastRendering is the flag that represents the usage of 8bit pictures.
virtual std::vector< QPoint > getPolygon()
getPolygon
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.
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.
virtual int getWidth() const