[W.I.P.] Added a FasterRenderOption

Still completly buggy. and it crashes imediatly after input
This commit is contained in:
Jan Schuffenhauer
2020-01-08 19:01:05 +01:00
parent dd55a7158d
commit c04d8d6815
12 changed files with 131 additions and 22 deletions

View File

@@ -9,6 +9,7 @@
#include <vector>
#include "IntelliHelper/IntelliHelper.h"
#include "IntelliHelper/IntelliRenderSettings.h"
class IntelliTool;
@@ -39,13 +40,20 @@ QImage imageData;
* \brief The Type, an Image is.
*/
ImageType TypeOfImage;
/*!
* \brief fastRenderer is the flag that represents the usage of 8bit pictures.
*/
bool fastRenderer;
public:
/*!
* \brief The Construcor of the IntelliImage. Given the Image dimensions.
* \param width - The width of the Image.
* \param height - The height of the Image.
* \param fastRendererOn - Represents the flag for 8bit picture handelling.
*/
IntelliImage(int width, int height);
IntelliImage(int width, int height, bool fastRendererOn);
/*!
* \brief An Abstract Destructor.
@@ -140,6 +148,13 @@ virtual bool loadImage(const QString &filePath);
* \return The color of the Pixel as QColor.
*/
virtual QColor getPixelColor(QPoint& point);
/*!
* \brief updateRendererSetting updates the existing image format to the new format.
* \param fastRendererOn flag for the 8bit image handeling.
*/
virtual void updateRendererSetting(bool fastRendererOn);
};
#endif