zig-gamedev icon indicating copy to clipboard operation
zig-gamedev copied to clipboard

Take a screenshot

Open giann opened this issue 2 years ago • 1 comments

I'm using zgui and would like to save a screenshot of a imgui window. How can I achieve this?

giann avatar Aug 22 '23 11:08 giann

You could use your window position and size to determine the region of your frame buffer occupied by the window, copy the pixels to a buffer and write to a file but I'm not sure if this is what you are trying to do exactly. The details depend on what backend you are using.

hazeycode avatar Jan 07 '24 14:01 hazeycode