Results 1 to 2 of 2

Thread: Rendering a Raw Image into a Qwt Plot

  1. #1
    Join Date
    Jul 2012
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Rendering a Raw Image into a Qwt Plot

    Greetings,

    I would like to render raw imagery (Bit 16 unsigned) into my Qwt plot and I am just a little confused about the proper method of going about it. I have browsed this forum as well wherever my good friend google takes me and I have seen different methods, but none for raw imagery. Do I use QwtPlotRasterItem for this? Can Qwt even support raw imagery? Thanks in advance.

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,311
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Rendering a Raw Image into a Qwt Plot

    Quote Originally Posted by CaveTroll View Post
    I would like to render raw imagery (Bit 16 unsigned) into my Qwt plot and I am just a little confused about the proper method of going about it. I have browsed this forum as well wherever my good friend google takes me and I have seen different methods, but none for raw imagery. Do I use QwtPlotRasterItem for this?
    When your image is somehow related to plot coordinates yes - otherwise no.

    Can Qwt even support raw imagery?
    QwtPlotRasterItem wants you to return a QImage. How to build this QImage from your data is up to you ( read the docs of QImage ), but from looking at the Qwt code it has to be a 8 bit or 32 bit image. When you want to use QwtPlotRasterItem::setAlpha a 32 bit image has to be QImage::Format_ARGB32.

    So QImage::Format_ARGB32 or QImage::Format_Indexed8 is what the implementation of YourRasterItem::renderImage() is supposed to to return.

    Uwe

Similar Threads

  1. Image rendering and zooming (QGraphicsView)
    By Sergex in forum Qt Programming
    Replies: 7
    Last Post: 6th October 2011, 12:51
  2. Replies: 2
    Last Post: 16th September 2010, 19:16
  3. Speeding up Image Rendering
    By reno77 in forum Newbie
    Replies: 2
    Last Post: 15th June 2010, 09:58
  4. Rendering an image within QwtPlot
    By ttvo in forum Qwt
    Replies: 4
    Last Post: 10th July 2009, 07:03
  5. Plot rendering in thread
    By viridis in forum Qwt
    Replies: 4
    Last Post: 3rd October 2008, 10:35

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.