Page 2 of 2 FirstFirst 12
Results 21 to 25 of 25

Thread: QImage::scaled cause "raster"/"grid"

  1. #21
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QImage::scaled cause "raster"/"grid"

    Can you replicate it with some arbitrary image downloaded from the Web?

  2. #22
    Join Date
    Feb 2008
    Posts
    49
    Thanks
    2
    Thanked 4 Times in 1 Post

    Default Re: QImage::scaled cause "raster"/"grid"

    Quote Originally Posted by wysota View Post
    Can you replicate it with some arbitrary image downloaded from the Web?
    No, i tried to load the image got from web into a QImage, then scale and display it, There is not the "raster" problem.

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

    Default Re: QImage::scaled cause "raster"/"grid"

    But did you do the same conversion you have been doing for your image?

  4. #24
    Join Date
    Feb 2008
    Posts
    49
    Thanks
    2
    Thanked 4 Times in 1 Post

    Default Re: QImage::scaled cause "raster"/"grid"

    Quote Originally Posted by wysota View Post
    But did you do the same conversion you have been doing for your image?
    no, because the conversion is used to convert a raw image data to RGB data, but the web image is already RGB (load with QImage)

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

    Default Re: QImage::scaled cause "raster"/"grid"

    Well, obviously QImage::scaled() works in general so you don't have to check that. Find a raw image, convert it using your routine (to test your routine) and then pass it through QImage::scaled() to see if you obtain a similar effect.
    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: 3
    Last Post: 8th July 2008, 20:37
  2. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 20:05
  3. QFile Problem~ "Unknow error" in "open(QIODevice::ReadWrite)"
    By fengtian.we in forum Qt Programming
    Replies: 3
    Last Post: 23rd May 2007, 16:58

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.