Csharp | C# – Ekran Görüntüsü Alma

Youtube Kanalı :  https://www.youtube.com/channel/UCHg1d6Kl9SGx5arpqkjNEZg

Web                      : http://bilgitrafigi.com

 

[code lang=”csharp”]

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ekran_goruntusu_alma
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void btn_Cek_Click(object sender, EventArgs e)
{
Bitmap foto = new Bitmap(Screen.PrimaryScreen.Bounds.Width,Screen.PrimaryScreen.Bounds.Height);
Graphics gr = Graphics.FromImage(foto);
gr.CopyFromScreen(0,0,0,0, new Size(foto.Width, foto.Height));

pcb_Goruntu.Image = foto;
}
}
}

[/code]

PROJEYİ İNDİR

Csharp Print Screen bilgi Trafiği

Yorumlar 1

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir