   Automatic print screen of entire display
  Ciao everybody,I am writing a simple recognition program but I need my C++ program to take a screen shot of entire screen of my display automaticaly in the program. I found a forum where they told it is possible with SDL but I could not find any other reference anywhere. Doesn't anybody know whether it is even possible and how is could achieve it. Thanks a lot in advance.   
Quote:Original post by kvasczCiao everybody,I am writing a simple recognition program but I need my C++ program to take a screen shot of entire screen of my display automaticaly in the program. I found a forum where they told it is possible with SDL but I could not find any other reference anywhere. Doesn't anybody know whether it is even possible and how is could achieve it. Thanks a lot in advance.SDL 1.2.x doesn't have this feature; I'm pretty sure 1.3 doesn't either, but I could be wrong about that.Most likely you'll need to implement this yourself using an appropriate API. What platforms/OSs are you targeting? OS X? Windows? Linux?   ;Quote:Original post by jykSDL 1.2.x doesn't have this feature; I'm pretty sure 1.3 doesn't either, but I could be wrong about that.Most likely you'll need to implement this yourself using an appropriate API. What platforms/OSs are you targeting? OS X? Windows? Linux?Then, I will start with Windows primarily. Well, but i would like to avoid using anything like .NET. I am coding in Code::Blocks.[Edited by - kvascz on June 12, 2009 6:35:13 PM]; I have code for saving pixel data to a TGA file if you like, but you'll have to change the code so that it reads the whole screen and not just the opengl display, and it sounds like you want it to be able to screenshot everything, including what's running on the desktop outside the window.   ;Quote:Original post by radioteeth I have code for saving pixel data to a TGA file if you like, but you'll have to change the code so that it reads the whole screen and not just the opengl display, and it sounds like you want it to be able to screenshot everything, including what's running on the desktop outside the window.Yes, I need to take whole screen.[Edited by - kvascz on June 13, 2009 4:28:19 AM];  Thanks to your help. I have found this code which fullfill my needs compleately.http://planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=10754&lngWId=3   