QPixmap size limit
-
Hi,
I need to use a QPixamp with a width of at least 35000, but if I read well from the documentation the QPixamp it is limited to 32768.
Is there a way to overcome this limit?Thanks
-
@Gianluca86-0 said in QPixmap size limit:
QPixamp it is limited to 32768
from where exactly do you have this information? Width and height are both int.
-
Hi
As far as i know, there is no way to increase it.Can you explain what you need such large bitmap for ?
It will take 1 GB of memory or more and be ultra heavy to do anything with.
Maybe there is another way to archive what you want. -
@mrjj: I need to create and manage images from 3000x50 mm to 400 DPi (even over 3 meters, but always at minimum height).
I only see one image at a time on a QPainter, so I have no memory problems.
I would like to avoid reducing the DPi or dividing the image into 2 or more QPixmaps, any suggestions? -
@Gianluca86-0
Hi
I think you will have to divide it into 2 or more to handle it.
Not only due to the limitation in QPixmap but also due to limits from the operating system.