Results 1 to 2 of 2

Thread: Fast image plotting and display

  1. #1
    Join Date
    Nov 2007
    Posts
    291
    Thanks
    85
    Thanked 1 Time in 1 Post

    Default Fast image plotting and display

    hi
    There are two threads .One GUI thread which displays pixmap.Worker thread which paints on a image and send the QImage to gui thread as signal(emit finished(QImage)).The GUI thread converts the QImage to pixmap and then displays(same as mandelbrot example).This method consumes time(converting QImage to Pixmap).

    I only want to paint the pixmap(no pixel manipulation).So will it be better to paint a pixmap in the worker thread and convert it to QBytearray and send that through signal(QPixmap cant be used here since it is not thread-safe).If so ,which format of image to use to convert the QPixmap to Bytearray(since QT supports BMP,GIF,JPG,JPEG,PNG,PBM,PGM,PPM,XBM,XPM) .I use RHEL(red hat linux).
    Last edited by babu198649; 6th December 2008 at 10:46.

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

    Default Re: Fast image plotting and display

    You can't operate on pixmaps in worker threads. Formats of images don't matter anywhere, QImage stores its data in the same format regardless of the original file format. Same with QPixmap, by the way.

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.