PDA

View Full Version : finding maximum scaling of a pixmap



babu198649
31st March 2008, 12:27
hi
i am using a pixmap to display image . but when i scale the pixmap after a certain range of scaling i get this message

X Error: BadAlloc (insufficient resources for operation) 11
Major opcode: 53 (X_CreatePixmap)
Resource id: 0x2a00036
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Extension: 154 (RENDER)
Minor opcode: 4 (RenderCreatePicture)
Resource id: 0x2a00036
X Error: BadDrawable (invalid Pixmap or Window parameter) 9
Major opcode: 55 (X_CreateGC)
Resource id: 0x2a00036
........

there must be a maximum point to scale a pixmap and how to find that maximum value to which a pixmap can be scaled(also to find minimum value to which a pixmap can be scaled).

ChristianEhrlicher
31st March 2008, 14:32
It doesn't depend on QPixmap but on your installed and free memory - for example a pixmap with 10000x10000 pixels needs a single chunk of ~400MB.