set_colordefines the colors for region output in the window. The available colors can be queried with the operatorquery_color. In addition, theColormay be specified as hexadecimal RGB triplet or RGBA quadruplet in the form'#rrggbb'and'#rrggbbaa'. 'rr', 'gg', 'bb', and 'aa' are hexad...
set_color defines the colors for region output in the window. The available colors can be queried with the operator query_color. In addition, the Color may be specified as hexadecimal RGB triplet or RGBA quadruplet in the form '#rrggbb' and '#rrggbbaa'. 'rr', 'gg', 'bb', and 'aa...
set_colordefines the colors for region output in the window. The available colors can be queried with the operatorquery_color. In addition, theColormay be specified as hexadecimal RGB triplet or RGBA quadruplet in the form'#rrggbb'and'#rrggbbaa'. 'rr', 'gg', 'bb', and 'aa' are hexad...
代码实现: public void OpenWindow() { long m_lWindowRow = 0, m_lWindowColumn = 0; //获取PictureBox控件句柄 HTuple Farther_windowHandle = this.pictureBox1.Handle; //设置显示界面属性 HOperatorSet.SetWindowAttr("background_color", "blue"); //打开窗体 HOperatorSet.OpenWindow(m_lWindowRow,...
//设置窗口几何对象显示颜色,这个设置一直到下一个SetColor才会改变。 if (HDevWindowStack::IsOpen()) SetColor(HDevWindowStack::GetActive(),"red"); //定义区域的填充模式,有'fill', 'margin'前者是填充全部区域,后者是显示边缘,在显示边缘时可以用 ...
在进行 Halcon 和 WPF上位机开发过程中,使用 HSmartWindowControlWPF 来显示 Halcon 图像、区域、轮廓。文本等对象。 初次显示时,建议设置颜色、线宽等信息 HalconWindow.SetLineWidth(2);HalconWindow.SetColored(3);HalconWindow.SetColor("orange red");
//Halcon下,红色半透明dev_set_color(‘#ff000080’)//Qt下Debug模式,蓝色半透明SetColor(hv_Window,"#0000ff80"); 但是在Qt的Release下不能使用十六进制来代替颜色设定,只能设定具体的颜色, color颜色color颜色color颜色color颜色color颜色 black黑色white白色red红色green绿色blue蓝色 ...
HOperatorSet.SetColor(HDevWindowStack.GetActive(), "red"); } if (HDevWindowStack.IsOpen()) { HOperatorSet.SetLineWidth(HDevWindowStack.GetActive(), 5); } ho_Cross1.Dispose(); HOperatorSet.GenCrossContourXld(out ho_Cross1, hv_Row2, hv_Column2, 100, 0.785398); ...
SetColor(hv_WindowID,"red");//设置二值图目标的颜色(在显示之前)DispObj(ho_Regions, hv_WindowID);//Esc键切换下一张图while(true) {if(_getch() ==27){ CloseWindow(hv_WindowID);break;//跳出while循环体} } } } } 对应的halcon程序(无键盘事件) ...
hWindowControl1.HalconWindow.SetColor("green");//设置显示颜色 4、系统全局参数设置(非必要,但建议设置) HOperatorSet.SetSystem("do_low_error","false");//少报错 HOperatorSet.SetSystem("clip_region","false");//region在图像外不切掉 HOperatorSet.SetSystem("border_shape_models","true");//依然...