Results 1 to 3 of 3

Thread: Best way to animate a resizing image

  1. #1
    Join Date
    Jan 2010
    Posts
    190
    Thanks
    18
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Best way to animate a resizing image

    Hi! Which is the best way to animate the resizing of an image? I subclassed a QLabel and rewrote the resize method to scale a preloaded image using the fast algorithm and then I animated the geometry using QPropertyAnimation. Is this the best way from the performance point of view? I still get too low performance.
    Thanks!

  2. #2
    Join Date
    Jan 2006
    Location
    Norway
    Posts
    124
    Thanked 38 Times in 30 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Best way to animate a resizing image

    Could you share the whole case study with us? It's easier to understand what the best approach is if we know what you want the end result to be like :-).
    Bitto / Andreas Aardal Hanssen - andreas dot aardal dot hanssen at nokia
    Nokia Software Manager, Qt Development

  3. #3
    Join Date
    Jan 2010
    Posts
    190
    Thanks
    18
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Best way to animate a resizing image

    What do you mean by case study? The situation I'm handling? I'm trying to write an image browser. So I have my folder with my thumbnails. When I click on a thumbnail, I want the image to start growing in size till it gets to a specified size. Pretty common approach. The problem is that I'm running this application on a device with low performance, and the approach I used resulted in something that doesn't completely satisfy me. Is there any other possible way?
    Thanks!

Similar Threads

  1. Automatic image resizing too slow
    By mhbeyle in forum Qt Programming
    Replies: 1
    Last Post: 14th December 2009, 07:55
  2. Animate in Dialog
    By wirasto in forum Newbie
    Replies: 1
    Last Post: 11th December 2009, 11:34
  3. resizing an image without interpolation
    By mattei in forum Qt Programming
    Replies: 3
    Last Post: 9th December 2009, 11:10
  4. animate a window
    By iGoo in forum Qt Programming
    Replies: 4
    Last Post: 27th June 2006, 10:46
  5. save animate to gif
    By Dmitry in forum Qt Programming
    Replies: 2
    Last Post: 16th February 2006, 16: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.