Answers for "take screenshot windows c#"

C#
2

c# windows grab screenshot

private Bitmap GetSreenshot()
{
  Bitmap bm = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
  Graphics g = Graphics.FromImage(bm);
  g.CopyFromScreen(0, 0, 0, 0, bm.Size);
  return bm;
}
Posted by: Guest on March-18-2020

C# Answers by Framework

Browse Popular Code Answers by Language