halcon-draw_xld手绘轮廓
在HDevelop中
dev_open_window(10,10,500,500,'black',WindowHandle) draw_xld (ContOut, WindowHandle, 'true', 'true', 'true', 'true') *手绘轮廓 *参数1:输出轮廓 *参数2:窗口句柄 *参数3:启用旋转? *参数4:允许移动? *参数5:启用缩放功能? *参数6:缩放时保持比例? dev_display (ContOut)
在QtCreator中
HObject ho_ContOut;
HTuple hv_WindowHandle;
SetWindowAttr("background_color","black"); OpenWindow(10,10,500,500,0,"visible","",&hv_WindowHandle); HDevWindowStack::Push(hv_WindowHandle); DrawXld(&ho_ContOut, hv_WindowHandle, "true", "true", "true", "true"); //手绘轮廓 //参数1:输出轮廓 //参数2:窗口句柄 //参数3:启用旋转? //参数4:允许移动? //参数5:启用缩放功能? //参数6:缩放时保持比例? if (HDevWindowStack::IsOpen()) DispObj(ho_ContOut, HDevWindowStack::GetActive());