Capture Screen Shot Automatically
Capturing Screenshots System Automatically in Bitmap Images Save To Folder in Window Application Or Web Application.
DEMO
C# CODING
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7iEFa__OsmHwcdyUlK6aiNrSff_jWmIDpVdzHA8Ya1MH0GtWQiKVXZgB-R8QQ0_fVN430ySH6Uqyihb4qgXQtv37wziWvKzLEyEw549jxaZs-azFEDSPTIA31rLNYHSut5dsYtXXHqX9S/s1600/4.png)
Capturing Screenshots System Automatically in Bitmap Images Save To Folder in Window Application Or Web Application.
DEMO
C# CODING
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Windows.Forms;
using System.Drawing;
using System.Drawing.Imaging;
public partial class ScreeeCapturen : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Bitmap bitmap = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
Graphics graphics = Graphics.FromImage(bitmap as System.Drawing.Image);
graphics.CopyFromScreen(25, 25, 25, 25, bitmap.Size);
bitmap.Save(@"D:\Capturing\CapturingImage.bmp", ImageFormat.Bmp);
//bitmap.Save(@"D:\Capturing\CapturingImage.jpg", ImageFormat.Bmp);
//bitmap.Save(@"D:\Capturing\CapturingImage.png", ImageFormat.Bmp);
//bitmap.Save(@"D:\Capturing\CapturingImage.bmp", ImageFormat.Bmp);
}
}
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7iEFa__OsmHwcdyUlK6aiNrSff_jWmIDpVdzHA8Ya1MH0GtWQiKVXZgB-R8QQ0_fVN430ySH6Uqyihb4qgXQtv37wziWvKzLEyEw549jxaZs-azFEDSPTIA31rLNYHSut5dsYtXXHqX9S/s1600/4.png)
0 comments:
Post a Comment