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

    M5Img documentation

    UIFlow
    3
    5
    6.7k
    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
      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
        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
          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
            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
              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
              • First post
                Last post