Головна‎ > ‎C# WinForms‎ > ‎Більше‎ > ‎

Знімок екрана


ScreenCapture sc = new ScreenCapture();
// capture entire screen, and save it to a file
Image img = sc.CaptureScreen();
// display image in a Picture control named imageDisplay
this.imageDisplay.Image = img;
// capture this window, and save it
sc.CaptureWindowToFile(this.Handle,"C:\\temp.gif",ImageFormat.Gif);