自学内容网 自学内容网

Halcon打开多个窗口,指定窗口显示指定内容

* Halcon打开多个窗口,指定窗口显示指定内容
* dev_set_window (WindowHandle1),先设置指定窗口句柄即可

代码如下:

dev_open_window (0, 0, 300, 300, 'black', WindowHandle1)
dev_open_window (0, 320, 300, 300, 'black', WindowHandle2)

dev_open_file_dialog ('read_image', 'default', 'default', Selection)
read_image (Image1, Selection)


dev_open_file_dialog ('read_image', 'default', 'default', Selection)
read_image (Image2, Selection)

gen_rectangle1 (Rectangle, 3000, 3000, 3100, 3200)
gen_circle (Circle, 3000, 3000, 100.5)

dev_set_window (WindowHandle1)
dev_display (Image1)
dev_display (Circle)

dev_set_window (WindowHandle2)
dev_display (Image2)
dev_display (Circle)
dev_display (Rectangle)


原文地址:https://blog.csdn.net/weixin_42215453/article/details/143566463

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!