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

save as image api/ example #20

Open
benmkw opened this issue Jun 1, 2021 · 1 comment
Open

save as image api/ example #20

benmkw opened this issue Jun 1, 2021 · 1 comment

Comments

@benmkw
Copy link
Contributor

benmkw commented Jun 1, 2021

maybe by using a backend like imgui-rs/imgui-rs#482 this crate would be nice for creating images as well (also ref https://github.com/38/plotters)

Otherwise a simple wgpu example which saves the buffer using the image crate could probably be added.

@4bb4
Copy link
Owner

4bb4 commented Jun 9, 2021

That sounds like a nice feature / example to have, yes. I don't have much experience with lower-level wgpu stuff though - I found something that could work in https://github.com/glium/glium/blob/master/examples/screenshot.rs for glium, but you would probably prefer to get an individual plot, not the entire imgui window, to a file.

If you have any references or wgpu code that could point me in the right direction, let me know!

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

No branches or pull requests

2 participants