halcon-set_window_extents修改窗口的位置和大小
set 修改 大小 窗口 位置 window HALCON
2023-09-27 14:28:41 时间
在HDevelop中
read_image (Image, 'D:/bb/tu/ma.jpg') dev_open_window(0,0,500,400,'black',WindowHandle) set_window_extents(WindowHandle,100,0,300,200) *修改窗口的位置和大小 *参数1:要修改的窗口的句柄 *参数2:窗口新坐标的Row-y坐标 *参数3:窗口新坐标的col-x坐标 *参数4:窗口新宽度 *参数5:窗口新高度 dev_display(Image)
在QtCreator中
HObject ho_Image; HTuple hv_WindowHandle; ReadImage(&ho_Image, "D:/bb/tu/ma.jpg"); SetWindowAttr("background_color","black"); OpenWindow(0,0,500,400,0,"visible","",&hv_WindowHandle); HDevWindowStack::Push(hv_WindowHandle); SetWindowExtents(hv_WindowHandle, 100, 0, 300, 200); //修改窗口的位置和大小 //参数1:要修改的窗口的句柄 //参数2:窗口新坐标的Row-y坐标 //参数3:窗口新坐标的col-x坐标 //参数4:窗口新宽度 //参数5:窗口新高度 DispObj(ho_Image, hv_WindowHandle);
相关文章
- Java中 List、Set、Map遍历方式以及性能比较
- 【BZOJ】1675: [Usaco2005 Feb]Rigging the Bovine Election 竞选划区(暴力dfs+set判重)
- Python面试题目之(针对dict或者set数据类型)边遍历 边修改 报错dictionary changed size during iteration
- 解决:[ERROR] Error executing Maven. [ERROR] 1 problem was encountered while building the effective set
- set unused
- Redis数据结构详解之Set(三)
- Java中List Set Map 是否有序等总结
- Redis数据结构(二)-List、Hash、Set及Sorted Set的结构实现
- Codeforces #250 (Div. 2) B. The Child and Set
- 使用Kubernets Pet Set部署上千个Cassandra实例
- 问题:-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "BlueView" nib but the view outlet was not set.
- halcon-set_color设置输出颜色
- halcon-dev_set_part修改图像的显示区域