Results 1 to 3 of 3

Thread: How to scale a QImage

  1. #1
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How to scale a QImage

    Hi,

    How can I display a QImage in logarithmic scale?

    The image is bounded by an QRectF that has positive left/right and top/bottom....

    I know it is unusual, but it happens...

  2. #2
    Join Date
    Dec 2006
    Posts
    426
    Thanks
    8
    Thanked 18 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to scale a QImage

    Anyone has an algorithm?

    I see this http://www.dfanning.com/graphics_tips/logimage.html but hard to understand...

  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 scale a QImage

    Unfortunately you'll have to recalculate the data yourself. Data in QImage is kept in a linear scale and there is nothing you can do about it. You can only use the formulas you mentioned to convert the image into linear scale.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 12
    Last Post: 7th September 2011, 16:37
  2. Streaming QImage (QByteArray, QDataStream, QBuffer)
    By knarz in forum Qt Programming
    Replies: 5
    Last Post: 17th January 2009, 22:05
  3. QImage and "raw" grey scale
    By high_flyer in forum Qt Programming
    Replies: 9
    Last Post: 9th December 2008, 17:01
  4. Multiple QPainters on QImage
    By fire in forum Qt Programming
    Replies: 3
    Last Post: 14th August 2008, 13:10
  5. Replies: 13
    Last Post: 12th June 2008, 13:23

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.