Results 1 to 3 of 3

Thread: poor Quality after QPixmap::scaled()

  1. #1
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    258
    Thanks
    22
    Thanked 19 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default poor Quality after QPixmap::scaled()

    When I scale down images using QPixmap::scaled() I get relatively poor Image quality. Is there a way to scale down an image and not loose too much imagequality in the process?

    Thanks in advance

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: poor Quality after QPixmap::scaled()

    You should get better results if you use Qt::SmoothTransformation for the transformMode parameter of QPixmap::scaled.

  3. The following user says thank you to marcel for this useful post:

    momesana (1st October 2007)

  4. #3
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    258
    Thanks
    22
    Thanked 19 Times in 16 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: poor Quality after QPixmap::scaled()

    Thanks a lot. It really makes a big difference.

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.