Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Dynamic Image Scaling
Forum Updated to NodeBB v4.3 + New Features

Dynamic Image Scaling

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 2 Posters 805 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • dvirmaniD Offline
    dvirmaniD Offline
    dvirmani
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by SGaist
      #2

      Hi and welcome to devnet,

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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • dvirmaniD Offline
        dvirmaniD Offline
        dvirmani
        wrote on last edited by dvirmani
        #3

        @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.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Can you show how you do it ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved