/// <summary> /// Repaints the HALCON window 'window' /// </summary> public void repaint(hvppleDotNet.HWindow window) { try { int count = HObjImageList.Count; HObjectEntry entry; HSystem.SetSystem("flush_graphic", "false"); window.ClearWindow(); mGC.stateOfSettings.Clear(); //显示图片及文字 showHObjectList(); //显示region showHRegionList(); //显示ROI showROIList(); showHat(window); showBorder(window); HSystem.SetSystem("flush_graphic", "true"); //注释了下面语句,会导致窗口无法实现缩放和拖动 window.SetColor("dim gray"); window.DispLine(-100.0, -100.0, -101.0, -101.0); } catch (Exception exc) { } }