Results 1 to 5 of 5

Thread: Paint streaming pixel data

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2008
    Posts
    53
    Thanks
    10

    Default Paint streaming pixel data

    Hello,

    Please help me figure out what the best method is to load a file of pixel data (each pixel is 8bits) and paint it to the screen. The data is supposed to stream down the screen (i.e waterfall). (So basically read one line at a time from the file and stream the image from the top of the screen)

    I'm currently just testing with a regular QImage file and scrolling it down the screen. I first tried the basic method of loading a QImage and calling paintEvent on a set timer. PaintEvent will just redraw the image (drawImage) one line lower each time.

    However, the image scrolls down the screen very slowly, and i'm sure there is a better way to do this.

    I also found a basic example of QGraphicsScene and QGraphicsView which uses animation->setPosAt(...) after a certain QTimeLine. However I'm not sure if this is what I want for my application (to repeatedly read the pixel data file 1 line at a time and stream it down the screen).

    Thank you very much for your help
    -James
    Last edited by jmsbc; 16th September 2008 at 01:10.

Similar Threads

  1. Replies: 7
    Last Post: 29th August 2008, 10:24
  2. QPixmap pixel by pixel ?
    By tommy in forum Qt Programming
    Replies: 19
    Last Post: 3rd December 2007, 22:52
  3. Replies: 4
    Last Post: 19th October 2007, 19:47
  4. speed of setdata - lots of items in treeview
    By Big Duck in forum Qt Programming
    Replies: 4
    Last Post: 6th July 2006, 12:53
  5. Replies: 16
    Last Post: 7th March 2006, 15:57

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.