QPixmap load big images
-
Hi everyone,
I tried to load big images (.PNG) without success, after reading the QT documentation, I found that the QPixmap can't load the big images because QPixmap use the X-Server and my images can't be displayed by the server. Consequently, I have a blank screen in my QGraphicsScene.
I'm on 32bit system and I want stay on a 32bit system (on the platform windows).
So, I would like to know if it's possible to display a big image within the QGraphicsScene and if it's not possible, how to know (or calculate) the good size of each image, to display it on the QGraphicsScene.
I can't split the original image in different images.Thanks in advance.
-
Stackoverflow says 32767x32767 is the max.
-
Yes I saw that but in practice it's false. And I would like to know how to determine the size for resizing my image.
-
Sorry if this question is stupid, but do your images even fit in your computer's RAM and in your graphics card's RAM?
-
No and that's the point, I want to resize my image with the optimized size to display it.
The size could be the size maximum that I can load depending on the memory available.
And so my question is precisely, how to calculate this optimized size for resizing my image depending on the memory available, to display my image even if it is too large (in a QPixmap added within a QGraphicsScene through a QGraphicsPixmapItem)?