chunks chunks,
I have tried out your dll on a simple rotating cube program. Although it captures the screen OK, it is rather on the slow side, operating at about 5 frames per second when used in the code snippet below:
Sync On : Sync Rate 0
Make Object Cube 1,1
iClock = 0
`###############################
`MAIN LOOP
`###############################
Do
Inc iClock
Text 0, 0, "iClock: " + Str$ ( iClock )
Text 0, 10, "FPS: " + Str$ ( Screen FPS() )
Turn Object Left 1,1
Capture To File "Frame" + Str$ ( iClock ) + ".jpg", 2
Sync
Loop
The .exe generated used "Windowed Mode" at a screen resolution of 640 x 480.
PC Specs:
Windows XP SP2
4GB RAM
Intel Quad Core 2.41Ghz
nVidia GeForce 8800GTS 320MB
--------------------------------------
You may be interested to know that I have created a similar .dll to do the same job, and under the same conditions, it runs at about 55-60 FPS. Would you like me to post this .dll somewhere, and perhaps the code?
I am at some point thinking of modifying my .dll to use the DirectDraw system to retrieve the images. I know VirtualDub uses this method, and it does seem to operate at a higher FPS rate that using the GDI-based system. Perhaps this might be a good way to go if you're thinking about modifying your own .dll for video capture.