C Sharp ile Ekran Görüntüsü Alma

private void button1_Click(object sender, EventArgs e)

{

Screenshot().Save(@”C:\Ekran_Resimleri\ekrangörüntüsü.jpg”,ImageFormat.Jpeg);

}

private Bitmap Screenshot() // Bitmap türünde olşuturuyoruz  fonksiyonumuzu.

{

Bitmap Screenshot = new Bitmap(Screen.PrimaryScreen.Bounds.Width,Screen.PrimaryScreen.Bounds.Height);

Graphics GFX = Graphics.FromImage(Screenshot);

GFX.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0,Screen.PrimaryScreen.Bounds.Size);

return Screenshot;

}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: