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

Capturing egui's frames #2642

Closed
amfaber opened this issue Jan 28, 2023 · 0 comments
Closed

Capturing egui's frames #2642

amfaber opened this issue Jan 28, 2023 · 0 comments
Labels
feature New feature or request

Comments

@amfaber
Copy link
Contributor

amfaber commented Jan 28, 2023

Hi, loving the crate!
Question / feature request: Is it possible to capture the frame rendered by egui?

Context:
I've built a simple UI to visualize some image processing for microscopy, and everything is working flawlessly!
I am using a custom wgpu shader to map the intensities of the data to an image with a colormap, and then adding some circles and lines on top with epaint. However, at this point it would be awesome if I could export the visuals as a video, for embedding in presentations and the like. I had initially hoped that I could simply get a handle to the surface texture that egui is rendering to (I'm using the wgpu backend). From that I would be able to get the final image back from the GPU to the CPU and do anything with it I like from there (save to an image, concatenate multiple images for a video, cut out parts of the frame that is UI and not video etc). However I have not been able to find a way to access the surface texture from egui / egui-wgpu / eframe / egui-winit.

Is it possible? If not, is it a feature that is plausible to add?
Is there some other, better way to accomplish what I want to do?

Thanks for the awesome work :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant