>  I took screenshot of my desktop and some video player with direct3d were
>  running, I got black rectangle in that screen position.

I remember this pheonomena back from when I was doing DirectX/DirectShow 
development. That black rectangle where you had a video playing is a special 
region of the screen that allows YUV data to pass through the video buffer. In 
other words, they make all the RGB pixels 0,0,0 and overlay a YUV video through 
that black "hole". So there's nothing you can capture there.


~ Michael 



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


Reply via email to