-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need more examples #304
Comments
Have you seen https://emilk.github.io/egui/index.html ? The Widget Gallery shows how to display an image. Showing an image behind an existing widget (e.g. a slider) is not currently possible; please open a feature request issue if that is something you need! The toggle switch demo (also shown in the widget gallery) shows how you get hover-effects: https://github.com/emilk/egui/blob/master/egui_demo_lib/src/apps/demo/toggle_switch.rs |
I studied the source of the example yes but this code doesn't show how to load an arbitrary png/jpg. Could this be added? (and even better: can you show how to do this here?) Thanks! |
Loading images can be done with https://crates.io/crates/image as shown in https://github.com/emilk/egui/blob/master/egui_demo_lib/src/apps/http_app.rs |
A better image loading example would be good though. When egui gets a logo, I can add an example for loading it. |
Yes. I was able to make it work by copy/pasting a sizeable portion of On a related note, I noticed that an image can never be |
Yes, that's why there is a separate |
I added a task to make a demo to load/show an image to #186 |
I am trying to find out how to
So far, I haven't been able to find examples or documentation showing how to do this
The text was updated successfully, but these errors were encountered: