/// <summary> /// 图像坐标和灰度值显示 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void HWControl1_HMouseMove(object sender, HMouseEventArgs e) { if (NG1_ho_Image != null) { try { GrayPosition1.Text = HWndCtrl1.Get_Mouseposition_and_Gray(H_WControl1.HalconID, NG1_ho_Image, e); } catch (Exception) { } } }
private void HWControl1_HMouseMove(object sender, HMouseEventArgs e) { if (ho_Image != null) { try { TB_PositionAndGray.Text = HWndCtrl.Get_Mouseposition_and_Gray(hv_ImageWindow, HWndCtrl.ho_Image_Changed, e); } catch (Exception) { } } }