Results 1 to 3 of 3

Thread: reading writing qimage / qbitmap to and from memory

  1. #1
    Join Date
    Dec 2007
    Location
    Groningen Netherlands
    Posts
    182
    Thanks
    16
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default reading writing qimage / qbitmap to and from memory

    Hello,

    I am displaying an animation by generating qimages and qbitmaps for the setMask() function.
    To speed up animation and to avoid flicker I would like to try to store these generated qimages and qbitmaps into memory, so that I can read them back from memory once they are generated which will speed things up and hopefully avoid flicker. Each qimage has a corresponding qbitmap which will be used for setMask().

    I am a bit at loss how to go about this, I looked at qimagereader/writer but I'm not sure if that is the way to go.
    Could someone help me a bit on my way with this. I probably will need some kind of qiodevice. A bit of code to get me going would be much appreciated.

    Thanks, Jean.

  2. #2
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: reading writing qimage / qbitmap to and from memory

    Hi,

    If you only want to store a list of QImages into memory, you can use a "QList<QImage>".
    Òscar Llarch i Galán

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

    JeanC (13th May 2008)

  4. #3
    Join Date
    Dec 2007
    Location
    Groningen Netherlands
    Posts
    182
    Thanks
    16
    Thanked 2 Times in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: reading writing qimage / qbitmap to and from memory

    That's a nice idea, hadn't thought of that, thanks.

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.