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. How to access properties of image loaded by canvas.loadImage?
Forum Updated to NodeBB v4.3 + New Features

How to access properties of image loaded by canvas.loadImage?

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

    I am making an app that loads lots of images from URLs via the canvas' loadImage function. I later draw them by getting the canvas' 2D context and calling its drawImage function and providing the same URLs. But, I cannot figure out how to get access to the image objects so that I can query width and height. The loadImage function is async and does not return an object. The API documentation for the imageLoaded function does not list any parameters. What am I missing?

    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