Replies: 3 comments
-
I don't believe egui has built-in functionality for this, but I think it would be relatively easy to do yourself. Load each frame of the gif separately into memory, display one image at a time using egui, and use a simple timer to decide when to move to the next frame. |
Beta Was this translation helpful? Give feedback.
-
Yep, just what I did and it works for my purpose. I used std::fs::read() so that I didn't have to use the literal argument in include_bytes!(). |
Beta Was this translation helpful? Give feedback.
-
Support for animated GIFs has been added in #4620. |
Beta Was this translation helpful? Give feedback.
-
I can set up egui to show an image but I would like to display a gif that is animated. I use the same setup but only got the first frame. Is this possible in egui. Since its only about 10 seconds, I thought about splitting it up and then loading a new image with each cycle. Thanks for your help.
Beta Was this translation helpful? Give feedback.
All reactions