Hi Michael, yes, I thought it is this reason. I read about som kind of "bypassing" video buffer but no idea how this can be done. :(
Dňa utorok, 20. júna 2017 21:38:55 UTC+2 Michael Lutinsky napísal(-a): > > > 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 > > > > > > On Tuesday, June 20, 2017 12:05:08 AM PDT you wrote: > > 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 > > >