.

Taking screenshots in c#

public static void Screenshot(string filename , int startX,int startY,int width,int height)
{
    Bitmap bit = new Bitmap(width, height);
    Graphics g = Graphics.FromImage(bit);
    g.CopyFromScreen(new Point(startX, startY), new Point(0, 0), bit.Size);
    bit.Save(filename);
    g.Dispose();
    Application.Exit();
}

What's your thoughts on this?

*

Protected by WP Anti Spam