Pregunta

I want to do a screenshot of a GUI window from C/C++ into the memory. It would be really nice if it's a two dimension array of RGB values or something similar.

Im at the moment searching for a Linux based solution, but would be nice if there is a platform independent solution.

¿Fue útil?

Solución

You could utilize xlib for Linux: How do take a screenshot correctly with xlib?

And GDI on Windows: MSDN - Capturing an Image

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top