🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5Img documentation

    Scheduled Pinned Locked Moved UIFlow
    5 Posts 3 Posters 8.3k Views 1 Watching
    Loading More Posts
    • 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.
    • L Offline
      luzhuomi
      last edited by

      Hi,

      I am looking for M5Img Documentation.
      I looked through http://community.m5stack.com/topic/877/closed-images-not-working/2 but it seems not available yet.

      More specifically I want to get the width() and height() of an M5Img object.

      Could anyone please shed some light on this?

      Regards,
      Kenny

      1 Reply Last reply Reply Quote 0
      • ajb2k3A Offline
        ajb2k3
        last edited by ajb2k3

        First off, what version firmware are you running, second, that discission is closed due to firmware changes.

        What I have collected so far is in the document found here - UIFlow Handbook
        Currently I do not know of a way to get the image size data in uiflow or micropython.

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        1 Reply Last reply Reply Quote 0
        • lukasmaximusL Offline
          lukasmaximus
          last edited by

          The new module for displaying images is M5UI you can find a little information about it here, It's pretty scarce for now but we are updating the new micropython API day by day
          https://github.com/m5stack/UIFlow-Code/wiki/M5UI

          L 1 Reply Last reply Reply Quote 0
          • L Offline
            luzhuomi @lukasmaximus
            last edited by

            @lukasmaximus and @ajb2k3
            Thank you guys. I will wait for the future firmware release then.

            Regards,
            Kenny

            1 Reply Last reply Reply Quote 0
            • lukasmaximusL Offline
              lukasmaximus
              last edited by

              Hey Kenny, just wondering why you would want to get the image width and height if you already prepared an image that fits within the screens confines, I would have thought you'd already know the size of your image. If you can give me a valid reason I can see if we can include those functions in the M5IMG library

              1 Reply Last reply Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post