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

2017-06-20 Thread Peter Irbizon
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,

Re: [pygame]

2017-06-20 Thread Ian Mallett
On Tue, Jun 20, 2017 at 12:51 AM, Peter Irbizon wrote: > help > ​You appear to be subscribed.​

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

2017-06-20 Thread Michael Lutinsky
> 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 t

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

2017-06-20 Thread Greg Ewing
Martin Kühne wrote: There appears to be a glReadPixels(0, 0, width, height, GL_RGB, GL_UNSIGNED_BYTE, pixels) function for that purpose in the OpenGL C library, maybe pyopengl has an equivalent function? That will only give you a snapshot of your own OpenGL drawing area, not anything else on th

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

2017-06-20 Thread Martin Kühne
There appears to be a glReadPixels(0, 0, width, height, GL_RGB, GL_UNSIGNED_BYTE, pixels) function for that purpose in the OpenGL C library, maybe pyopengl has an equivalent function? cheers! mar77i

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

2017-06-20 Thread Peter Irbizon
Thank you. I saw that link already. Unfortunately, none of these method is able to do it (when another window is rendered via directx, opengl, ...). Dňa utorok, 20. júna 2017 9:47:38 UTC+2 DiliupG napísal(-a): > > As far as I know this is not directly possible with Pygame as it's focus > is on

Re: [pygame] PyGame in the Browser/NodeWebkit?

2017-06-20 Thread DiliupG
This is great! Kudos! On 20 June 2017 at 11:31, René Dudfield wrote: > *High five* > > *happy dance* > -- Kalasuri Diliup Gabadamudalige https://dahamgatalu.wordpress.com/ http://soft.diliupg.com/ http://www.diliupg.com *

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

2017-06-20 Thread DiliupG
As far as I know this is not directly possible with Pygame as it's focus is on the window it creates. But you can use another method to do what you want. Read this: https://stackoverflow.com/questions/2846947/get-screenshot-on-windows-with-python On 20 June 2017 at 12:35, Peter Irbizon wrote: >

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

2017-06-20 Thread Peter Irbizon
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,