Results 1 to 2 of 2

Thread: finding maximum scaling of a pixmap

  1. #1
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Default finding maximum scaling of a pixmap

    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).

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: finding maximum scaling of a pixmap

    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.

  3. The following user says thank you to ChristianEhrlicher for this useful post:

    babu198649 (31st March 2008)

Similar Threads

  1. Pixmap scaling
    By yellowmat in forum Newbie
    Replies: 3
    Last Post: 4th January 2007, 16:01

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.