Ekran Görüntüsü Yakalama C#
Ekran Görüntüsü Yakalama C#
saveFileDialog1′in Filter özelliği aşağıdaki gibi olmalıdır.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;//www.gorselprogramlama.com
using System.Text;
using System.Windows.Forms;
using System.Drawing.Imaging;
namespace ekran_goruntusu_yakalama
{
public partial class Form1 : Form
{
public Form1()//www.gorselprogramlama.com
{
InitializeComponent();
}
private static Bitmap bmpEkranGoruntu;
private static Graphics grafikEkranGoruntu;//www.gorselprogramlama.com
private void btnEkranYakala_Click(object sender, EventArgs e)
{//www.gorselprogramlama.com
if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{//www.gorselprogramlama.com
bmpEkranGoruntu = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppArgb);
grafikEkranGoruntu = Graphics.FromImage(bmpEkranGoruntu);//www.gorselprogramlama.com
grafikEkranGoruntu.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0, Screen.PrimaryScreen.Bounds.Size, CopyPixelOperation.SourceCopy);
bmpEkranGoruntu.Save(saveFileDialog1.FileName, ImageFormat.Jpeg);
}//www.gorselprogramlama.com
}
}
}
Butona tıklandığında gösterilen konuma , belirlenen isimde , ekran görüntüsü aşağıdaki gibi JPG uzantılı olarak kaydediliyor.

Rica: Sitemizin Google'da Ön Sıralarda Çıkması İçin Lütfen Alttaki Google+ Butonuna Tıklayınız , Sayfamızı Facebookta Beğeniniz veya yazıları Twitter,Facebookta paylaşınız.










Son Yorumlar