Results 1 to 8 of 8

Thread: waterfall display

Threaded View

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

    Default waterfall display

    Hello,

    Sorry I needed help in creating a "waterfall display" which basically takes in a 2 dimensional array of 8bit pixels and displays it streaming down the screen. This data is just 8bit pixel data and keeps streaming into my display.

    Currently I just copy the data into a QImage with width and height equal to the size of the screen:

    screenImage = new QImage(desktop.width(),desktop.height(),QImage::Fo rmat_Indexed8);

    and print it to screen. Each time I have more pixel data coming in, I memmove the data in the qimage down and repaint the qimage using paintEvent.

    Obviously this is kind of slow because I have to repaint the qimage each time. Can somebody please please help me optimize by explaining a better method or pointing me in the right direction?

    Thank you,
    James
    Last edited by jmsbc; 14th November 2008 at 02:08.

Similar Threads

  1. Replies: 8
    Last Post: 18th March 2011, 11:27
  2. OS/X how to get physical display handle
    By hvengel in forum Qt Programming
    Replies: 4
    Last Post: 3rd January 2009, 19:51
  3. can Qlabel display a series of image one by one ?
    By jirach_gag in forum Qt Tools
    Replies: 3
    Last Post: 11th August 2008, 15:36
  4. Display only PNG image on desktop
    By durbrak in forum Qt Programming
    Replies: 32
    Last Post: 15th March 2008, 21:55
  5. Graphics view display problem.
    By kiranraj in forum Qt Programming
    Replies: 3
    Last Post: 20th July 2007, 07:08

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.