Qt World Summit: Submit your Presentation

Dynamic Image Scaling

  • What are the trade offs when an image is scaled from one size to another on the fly?

    For example - I am using an image in a rectangle. If I increase the width of the rectangle, I want to increase the width of the image also. An animation is used to show the change in width.

    I want to understand performance issues, when image's width is also changed, how does it impact memory usage. How many copies of image is stored in memory?

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What are you using to display the image ?
    How are you rescaling it ?

  • @SGaist Thank you!

    I am using qml's Image element and a png file as source.

    It's just a gradient image which I am using as the rectangle's border. I am using 1px width image and using the fillMode for the image's width to grow with the width of the rectangle.

  • Lifetime Qt Champion

    Can you show how you do it ?

Log in to reply