Example #1
0
File: Form1.cs Project: Bia10/clrn
 public Form1()
 {
     InitializeComponent();
     m_nRedToFind = 0;
     m_nGreenToFind = 0;
     m_nBlueToFind = 0;
     m_nRange = 1;
     m_SearchRect = new Win32.RECT();
 }
Example #2
0
File: Form1.cs Project: 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();*/
        }