示例一:打开一张图片
dev_close_window()
read_image (BrakeDiskBike01, 'C:/Users/Administrator/Pictures/brake_disk/brake_disk_bike_01.png')
get_image_size(BrakeDiskBike01, Width, Height)
dev_open_window(0, 0, Width, Height, 'black', WindowHandle)
dev_display(BrakeDiskBike01)
导出halcon代码(文件->导出)
导入Hwindow control控件
并通过tool box添加HWindowControl控件:
在工具箱中右击->选项卡(向.NET Framework组件库 添加HWindowControl控件)
创建单按钮程序界面