// --------------------mouse event;---------------------------------------- public void MouseMove(object sender, MouseEventArgs e) { //if(WowMan.mthis!=null) //{ // WowMan.mthis.onMove(e.X, e.Y); //} //return; Color c = FetchColor.gtColor(e.X, e.Y); //Console.Out.WriteLine(c.R.ToString()+"," + c.G.ToString() +","+ c.B.ToString()); mForm.ShowColor(c); string str = String.Format("Mouse:({0},{1}),color({2},{3},{4}", e.X, e.Y, c.R, c.G, c.B); mForm.setMouseLabe(str); //DbMsg.Msg(str); //mgesture.onMove2(e.X, e.Y); //return 0; }
public Color getColor(int x, int y) { Color c = FetchColor.getColorClient((int)this.getHwndWow(), x, y);// WowWin.mthis.mhwnd, x, y); return(c); }
public Color getColorClient(int x, int y) { IntPtr hwnd = getHwnd(); return(FetchColor.getColorClient((int)hwnd, x, y)); }