Can one use bevy to return an image as a Vec<u8> representing a PNG? #20607
Unanswered
DavidBJaffe
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Can one use bevy to generate a PNG as a Vec, rather than display an image? For example, could one do this with https://bevy.org/examples/3d-rendering/3d-scene, or is there a different example somewhere of this use case?
I see this https://docs.rs/bevy/latest/src/screenshot/screenshot.rs.html, but am looking for something one can run from the command line without interaction.
After many attempts, I got Claude to create this code:
But possibly there is a better way to do this. If you know, please tell me!
Beta Was this translation helpful? Give feedback.
All reactions