4bb4/implot-rs

save as image api/ example

benmkw opened this issue · 1 comments

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 commented

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!