void ShowObject(HWindow window) { if (window.IsInitialized() == false) { return; } //关闭显示刷新 HSystem.SetSystem("flush_graphic", "false"); //窗体图像清空 window.ClearWindow(); mGC.stateOfSettings.Clear(); try { //HTuple showStart; //HOperatorSet.CountSeconds(out showStart); int count1 = 0; foreach (var item in HObjList) { if (ResultShow == ResultShow.原图 && count1 > 0) { break; } if (item.HObj != null && item.HObj.IsInitialized()) { mGC.ApplyContext(window, item.gContext); window.DispObj(item.HObj); } else if (item.Message != null && isShowMessage) { //item.Message.DispMessage(window, "image", ((double)imageWidth / (double)(viewPort.Width)) / ZoomWndFactor); double sizeTmp = item.Message.CahangeDisplayFontSize(window, (1.0) / ZoomWndFactor, currentTextSize); currentTextSize = sizeTmp; item.Message.DispMessage(window, "image"); } count1++; } //HTuple showEnd; //HOperatorSet.CountSeconds(out showEnd); //double timeShow = (showEnd - showStart) * 1000.0; //Util.Notify(string.Format("内部显示图像用时{0:f2}ms", timeShow)); } catch (Exception) {; } }
void ShowObject(HWindow window) { if (window.IsInitialized() == false) { return; } //关闭显示刷新 //HSystem.SetSystem("flush_graphic", "false"); //窗体图像清空 window.ClearWindow(); mGC.stateOfSettings.Clear(); try { int count1 = 0; foreach (var item in HObjList) { if (ResultShow == ResultShow.原图 && count1 > 0) { break; } if (item.HObj != null && item.HObj.IsInitialized()) { mGC.ApplyContext(window, item.gContext); window.DispObj(item.HObj); } else if (item.Message != null && isShowMessage) { //item.Message.DispMessage(window, "image", ((double)imageWidth / (double)(viewPort.Width)) / ZoomWndFactor); double sizeTmp = item.Message.CahangeDisplayFontSize(window, (1.0) / ZoomWndFactor, currentTextSize); currentTextSize = sizeTmp; item.Message.DispMessage(window, "image"); } count1++; } } catch (Exception) {; } }