Skip to content
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

Add image loading/creating/displaying example. #5732

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

hydra
Copy link

@hydra hydra commented Feb 19, 2025

While learning egui I faced a number of issues with the image API which I documented here:

#3291 (comment)

This PR gives other users an idea of how to have a UI that shows either a loaded image or a generated image and serves as a talking point for potential API improvements.

Screenshots:

UI before any interaction:
image

UI after clicking 'generate':
image

UI after clicking 'load':
image

  • I have followed the instructions in the PR template

issues:
1. if load is pressed twice, the image disappears.
2. if load is pressed three times, the program panics.
Exact same issues as before.
… or double-drop situations that were apparently the cause of the issues.
@hydra hydra marked this pull request as ready for review February 19, 2025 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant