Results 1 to 4 of 4

Thread: How to scroll scanline image data from the left to the right

  1. #1
    Join Date
    Jul 2008
    Posts
    18
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Smile How to scroll scanline image data from the left to the right

    Hi folks

    Can anyone give me some tips on the best way to scroll image data across the screen from the left side of the screen to the right. I can currently draw image data top down using a qgraphicsscene and setting a label with each scanline i read and then calling scroll, but i need to draw vertically from left to right. The image data needs to be built off screen then as more lines are read i need to start scrolling it across the display untill its complete, then make it scroll off the right side of the display. Do i need to rotate the matrix to draw vertically or just swap my x,y cordinants? Also would a QAnimation and Qtimeline be good for the scrolling or would opengl be better as far as speed and looking smooth? Thanks for any help

  2. #2
    Join Date
    Oct 2006
    Location
    New Delhi, India
    Posts
    2,467
    Thanks
    8
    Thanked 334 Times in 317 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to scroll scanline image data from the left to the right


  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How to scroll scanline image data from the left to the right

    You want to scroll the image or move its data?

  4. #4
    Join Date
    Jul 2008
    Posts
    18
    Thanked 2 Times in 2 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Question Re: How to scroll scanline image data from the left to the right

    I need to scroll the image itself. The image data is received over a socket. The image data is just an array with the pixel values and dimensions, as 16bit bmp. I will get probably 10 lines or so on each payload and i need to append this data to a qimage and begin scrolling it onto the screen as the data is recieved from the left side, once the image is completely built i need it to continue and move across the display till it goes off the display on the right side. Im not sure if qanimation will look smooth enough, and i cant have it flickering but still needs to be somewhat fast. Also wondering if bitblt in a paintevent should be used for this. Thanks

Similar Threads

  1. Replies: 2
    Last Post: 29th September 2008, 01:08
  2. Help needed handling image data
    By toratora in forum General Programming
    Replies: 2
    Last Post: 11th May 2007, 10:24

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.