How to render screenshots offscreen and save as image? #4432
-
I try to create a gui with egui/eframe. For testing purposes I would like to give my application a state and then save the gui as an image instead of showing it. At the moment I use the __screenshot feature of eframe, but this always pops up the window shortly and thus hurts my programming flow. Is it possible render directly to an image? Any help is highly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is the goal of #1129, but it is not implemented yet. See also #3926 and https://github.com/lucasmerlin/egui_skia. |
Beta Was this translation helpful? Give feedback.
-
With the newest version of egui this issue is solved by https://github.com/emilk/egui/tree/master/crates/egui_kittest |
Beta Was this translation helpful? Give feedback.
With the newest version of egui this issue is solved by https://github.com/emilk/egui/tree/master/crates/egui_kittest