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. When I scale an image (by modifying the matrix in the parent scene(normal Item)), I only get an image with moiré
Forum Updated to NodeBB v4.3 + New Features

When I scale an image (by modifying the matrix in the parent scene(normal Item)), I only get an image with moiré

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 250 Views
  • 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.
  • 0 Offline
    0 Offline
    0ices
    wrote on last edited by
    #1

    78739c23861267.5633ec226b603.jpg
    original image↑
    d2926c11-ff6b-4d34-a673-172bee291730-image.png
    what I get in qml
    0fc5544e-418b-4eb9-9b85-b7fe521ffc0e-image.png
    what I want to get

    I have tried layout's smooth and mipmap but can not achieve the effect, and the difference between nearest and linear does not help at all.

    D 1 Reply Last reply
    0
    • 0 0ices

      78739c23861267.5633ec226b603.jpg
      original image↑
      d2926c11-ff6b-4d34-a673-172bee291730-image.png
      what I get in qml
      0fc5544e-418b-4eb9-9b85-b7fe521ffc0e-image.png
      what I want to get

      I have tried layout's smooth and mipmap but can not achieve the effect, and the difference between nearest and linear does not help at all.

      D Offline
      D Offline
      Drooke
      wrote on last edited by
      #2

      @0ices try using sourceSize.width and sourceSize.height for this image. It will render the image at the correct size rather than guess what each pixel should show.

      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