Re: [python-win32] screen capture and win32gui.GetDesktopWindow()

2006-12-07 Thread Ray Schumacher
Upon further tries, I can get handles, DCs, and/or Win32 BMPs from the desktop, but I can't get to a DIB from there. Can someone outline the general process that might be required? Ie., get window handle create in/out DCs select bmp to outDC blit inDC data I tried emulating a nice IronPython exa

Re: [python-win32] screen capture and win32gui.GetDesktopWindow()

2006-12-07 Thread Tim Roberts
James Matthews wrote: > Can you just call a GUI api that interfaces directly with the graphics > card? That's exactly what BitBlt is. The simple fact is that desktop images these days are HUGE. The device-to-memory path is not the most optimized path in a graphics chip. It just takes time to sn

Re: [python-win32] screen capture and win32gui.GetDesktopWindow()

2006-12-06 Thread RayS
At 05:02 PM 12/6/2006, Tim Roberts wrote: >Ray Schumacher wrote: > > I've been mulling screen capture code. I tried PIL's > > ImageGrab().grab() (with pymedia) but find PIL's method to be pretty > > slow, ~4grabs per second max with no other processes. > > pymedia is pretty quick once I hand it the

Re: [python-win32] screen capture and win32gui.GetDesktopWindow()

2006-12-06 Thread Gabriel Genellina
At Wednesday 6/12/2006 21:32, Ray Schumacher wrote: I've been mulling screen capture code. I tried PIL's ImageGrab().grab() (with pymedia) but find PIL's method to be pretty slow, ~4grabs per second max with no other processes. pymedia is pretty quick once I hand it the data. There has to be an

Re: [python-win32] screen capture and win32gui.GetDesktopWindow()

2006-12-06 Thread James Matthews
Can you just call a GUI api that interfaces directly with the graphics card? On 12/6/06, Tim Roberts <[EMAIL PROTECTED]> wrote: Ray Schumacher wrote: > I've been mulling screen capture code. I tried PIL's > ImageGrab().grab() (with pymedia) but find PIL's method to be pretty > slow, ~4grabs per

Re: [python-win32] screen capture and win32gui.GetDesktopWindow()

2006-12-06 Thread Tim Roberts
Ray Schumacher wrote: > I've been mulling screen capture code. I tried PIL's > ImageGrab().grab() (with pymedia) but find PIL's method to be pretty > slow, ~4grabs per second max with no other processes. > pymedia is pretty quick once I hand it the data. > How large is your screen? A 1600x12

[python-win32] screen capture and win32gui.GetDesktopWindow()

2006-12-06 Thread Ray Schumacher
I've been mulling screen capture code. I tried PIL's ImageGrab().grab() (with pymedia) but find PIL's method to be pretty slow, ~4grabs per second max with no other processes. pymedia is pretty quick once I hand it the data. There has to be another way to get a copy or buffer() of the screen DC