C# Programming
07-20-2009, 11:30 AM
The Subject says it all... At the moment I am using the following method:
Bitmap bmpScreenshot = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppArgb);
Graphics gfxScreenshot = Graphics.FromImage(bmpScreenshot);
gfxScreenshot.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0, Screen.PrimaryScreen.Bounds.Size, CopyPixelOperation.SourceCopy);
However, since I need to be taking screenshots at around every 250ms, I need to find the most efficient way possible (if any)...
Thanks!
Note: I have found that taking partial parts of the screen is much more efficient, but at the moment I need all the screen taken...
modified on Monday, July 20, 2009 3:22 AM
Bitmap bmpScreenshot = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppArgb);
Graphics gfxScreenshot = Graphics.FromImage(bmpScreenshot);
gfxScreenshot.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0, Screen.PrimaryScreen.Bounds.Size, CopyPixelOperation.SourceCopy);
However, since I need to be taking screenshots at around every 250ms, I need to find the most efficient way possible (if any)...
Thanks!
Note: I have found that taking partial parts of the screen is much more efficient, but at the moment I need all the screen taken...
modified on Monday, July 20, 2009 3:22 AM