Capturing screenshots from games
-
Hi I need to capture screenshots from DirectX games. I am using this code but sometimes I get totally blank images or the image of the desktop (but the game is open)
int screenWidth = Screen.GetBounds(new Point(0, 0)).Width;
int screenHeight = Screen.GetBounds(new Point(0, 0)).Height;
Bitmap bmpScreenShot = new Bitmap(screenWidth, screenHeight);
Graphics gfx = Graphics.FromImage((Image)bmpScreenShot);
gfx.CopyFromScreen(0, 0, 0, 0, new Size(screenWidth, screenHeight));
bmpScreenShot.Save("test.jpg", ImageFormat.Jpeg);I really need help. Thanks.
-
Hi I need to capture screenshots from DirectX games. I am using this code but sometimes I get totally blank images or the image of the desktop (but the game is open)
int screenWidth = Screen.GetBounds(new Point(0, 0)).Width;
int screenHeight = Screen.GetBounds(new Point(0, 0)).Height;
Bitmap bmpScreenShot = new Bitmap(screenWidth, screenHeight);
Graphics gfx = Graphics.FromImage((Image)bmpScreenShot);
gfx.CopyFromScreen(0, 0, 0, 0, new Size(screenWidth, screenHeight));
bmpScreenShot.Save("test.jpg", ImageFormat.Jpeg);I really need help. Thanks.
Been awhile since I have done screen shots, but I grabbed this from MSDN. http://msdn.microsoft.com/en-us/library/bb153278(VS.85).aspx[^]
Back in the blog beatch! http://CraptasticNation.blogspot.com/[^]
-
Been awhile since I have done screen shots, but I grabbed this from MSDN. http://msdn.microsoft.com/en-us/library/bb153278(VS.85).aspx[^]
Back in the blog beatch! http://CraptasticNation.blogspot.com/[^]
I have seen that code but I thought it was to use on your own DirectX application to save a screenshot of your own DirectX application. Can you tell me how to use that code? Thanks.
-
I have seen that code but I thought it was to use on your own DirectX application to save a screenshot of your own DirectX application. Can you tell me how to use that code? Thanks.
I'm at work so not much time right now, but here are a couple of links that I hope may help you out further! http://www.developerfusion.com/code/4630/capture-a-screen-shot/[^] DirectX.Capture Class Library[^]
Back in the blog beatch! http://CraptasticNation.blogspot.com/[^]
-
I'm at work so not much time right now, but here are a couple of links that I hope may help you out further! http://www.developerfusion.com/code/4630/capture-a-screen-shot/[^] DirectX.Capture Class Library[^]
Back in the blog beatch! http://CraptasticNation.blogspot.com/[^]
Thank you, I am looking into those links.
-
Thank you, I am looking into those links.
-
Please let the forum and I know if any of those helped; that way if the question comes up again we can reference those links. Thanks! leckey
Back in the blog beatch! http://CraptasticNation.blogspot.com/[^]
None of those links worked. :(