[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] take screenshots of desktop and any app running (even with direct3d, opengl, sdl, ...)



Hello,

I wondered if this is possible with pygame - I would like to take screenshot of my desktop. It means, my pygame app should run in background and be able to take whole screenshot of any application/whole desktop (not just itself), even in fullscreen mode (of in opengl, directx, direct3d, sdl mode). 
Because I tried to achieve this with python GTK but app for example when I took screenshot of my desktop and some video player with direct3d were running, I got black rectangle in that screen position.

Is there any sample code for this please?
Many thanks