在HDevelop中
dev_open_window (0, 0, 300, 300, 'black', WindowHandle)
gen_region_line (RegionLines, 100, 50, 120, 50)
get_region_points (RegionLines, Rows, Columns)
*获得区域所有像素点的坐标
dev_display(RegionLines)
在Qt Creator中
HObject ho_RegionLines;
HTuple hv_WindowHandle, hv_Rows, hv_Columns;
SetWindowAttr("background_color","black");
OpenWindow(0,0,300,300,0,"visible","",&hv_WindowHandle);
HDevWindowStack::Push(hv_WindowHandle);
GenRegionLine(&ho_RegionLines, 100, 50, 120, 50);
GetRegionPoints(ho_RegionLines, &hv_Rows, &hv_Columns);
//获得区域所有像素点的坐标
if (HDevWindowStack::IsOpen())
DispObj(ho_RegionLines, HDevWindowStack::GetActive());