예제 #1
0
파일: Form1.cs 프로젝트: Bia10/clrn
 public Form1()
 {
     InitializeComponent();
     m_nRedToFind = 0;
     m_nGreenToFind = 0;
     m_nBlueToFind = 0;
     m_nRange = 1;
     m_SearchRect = new Win32.RECT();
 }
예제 #2
0
파일: Form1.cs 프로젝트: Bia10/clrn
        private void timer2_Tick(object sender, EventArgs e)
        {
            textBox6.Text = System.Windows.Forms.Cursor.Position.X.ToString();
            textBox7.Text = System.Windows.Forms.Cursor.Position.Y.ToString();
            Win32.RECT rect = new Win32.RECT();
            m_nX = System.Windows.Forms.Cursor.Position.X;
            m_nY = System.Windows.Forms.Cursor.Position.Y;

            /*
            Bitmap Window = CCapture.GetBmpFromWindowHandle();
            Color Point = Window.GetPixel(x, y);
            textBox1.Text = Point.R.ToString();
            textBox2.Text = Point.G.ToString();
            textBox3.Text = Point.B.ToString();*/
        }