Results 1 to 3 of 3

Thread: QGraphicsPixmapItem to QPixmap to QImage and back again!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2011
    Posts
    19
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    12

    Default Re: QGraphicsPixmapItem to QPixmap to QImage and back again!

    Yes, it does change the image. I used the save function to output the whole image before and after conversion and the images were different, yet the display never changed.

    HOWEVER, I did solve this issue while making optimizations.

    I was being silly and converting each tile piece to QImage and back, so I figured, "Why not just do the slow change once on the whole image", so I now do the color change on the entire image just once, instead of millions of times, and now for some reason the color change is showing up.

    So... Whatever. Maybe the original problem had something to do with a variable falling out of scope or what-not, but it doesn't matter now, the issue is resolved. =)

    Thank you for your help, though.
    Last edited by bruceariggs; 10th September 2011 at 15:09. Reason: I are grammar king!

Similar Threads

  1. Replies: 2
    Last Post: 15th March 2010, 11:03
  2. What's faster: QPixmap-to-QImage or QImage-to-QPixmap
    By forrestfsu in forum Qt Programming
    Replies: 2
    Last Post: 15th December 2006, 18:11
  3. Replies: 2
    Last Post: 3rd November 2006, 23:20
  4. Replies: 7
    Last Post: 12th August 2006, 16:11
  5. QImage or QPixmap?
    By Dark_Tower in forum Qt Programming
    Replies: 9
    Last Post: 1st April 2006, 18:08

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.