在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);