I need fast to get the image from a game. And i try with simple screen shots like this:
Rectangle bounds = Screen.GetBounds(Point.Empty);
using (Bitmap bitmap = new Bitmap(bounds.Width, bounds.Height))
{
using (Graphics g = Graphics.FromImage(bitmap))
{
g.CopyFromScreen(Point.Empty, Point.Empty, bounds.Size);
}
bitmap.Save("Screen.bmp");
}
but i don't know why if i get the screen shot i can get another after 10 sec... need a way to take faster images. It would be even better to take the game frames.