آقا من الان کد c# رو تموم کردم و برای اولین بار درست کارمیکنه
Screenshot 2021-09-13 222659.jpg
فقط مشکلی که هست اینه که تو سه ثانیه رم پر میشه رم من 8 هست
کد: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; using Emgu.CV; using Emgu.CV.Structure; using Emgu.CV.UI; namespace WindowsFormsApplication1 { public partial class Form1 : Form { private Graphics gfx; public Form1() { InitializeComponent(); gfx = this.CreateGraphics(); } private void button1_Click(object sender, EventArgs e) { timer1.Start(); } private void timer1_Tick(object sender, EventArgs e) { var capture = new Emgu.CV.Capture(); pictureBox1.Visible = false; using (var nextFrame = capture.QueryFrame()) { if (nextFrame != null) { pictureBox1.Image = nextFrame.ToBitmap(); } } Bitmap myBitmap3 = new Bitmap(pictureBox1.Image); myBitmap3.MakeTransparent(Color.FromArgb(31, 58, 79)); Graphics g = Graphics.FromImage(myBitmap3); pictureBox2.Image = myBitmap3; gfx.DrawImage(pictureBox2.Image, 0, 0); } } } }






پاسخ با نقل قول
Bookmarks