示例#1
0
 /// <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)
         {
         }
     }
 }
示例#2
0
 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)
         {
         }
     }
 }