/// <summary> /// 获取点击鼠标的坐标 /// </summary> /// <param name="x"></param> /// <param name="y"></param> public void GetMbuttonSubPix(out double x, out double y) { x = 0; y = 0; bool IsSuc = true; HTuple mrow = 0, mcol = 0, mbutton; try{ HWindowControl MyWindow = viewController.GetWindow(); HOperatorSet.GetMbuttonSubPix(MyWindow.HalconWindow, out mrow, out mcol, out mbutton); x = mcol.D; y = mrow.D; } catch { IsSuc = false; } }