【机器视觉】 dev_close_window算子
00. 目錄
文章目錄
- 00. 目錄
- 01. 概述
- 02. 簽名
- 03. 描述
- 04. 注意
- 05. 參數
- 06. 結果
- 07. 附錄
01. 概述
dev_close_window - 關閉活動圖形窗口。
02. 簽名
dev_close_window( : : : )
03. 描述
dev_close_window關閉由dev_open_window(一個合適的菜單條目a suitable menu entry)打開的活動圖形窗口,或者關閉程序啟動或加載新程序后自動由HDevelop創建的窗口(默認窗口)。
算子相當于在活動窗口的標題欄中按關閉按鈕或從可視化菜單中選擇適當的菜單項關閉。
圖形窗口可以通過調用dev_set_window或通過按下所選圖形窗口的工具欄中的激活按鈕來激活。
原文描述:
dev_close_window closes the active graphics window which has been opened by dev_open_window, a suitable menu entry, or automatically by HDevelop itself at program start or after loading a new program (default window).
The operator is equivalent to pressing the Close button in the title bar of the active window or selecting the appropriate menu entry from the visualization menu.
A graphics window can be activated by calling dev_set_window or by pressing the Activate button in the tool bar of the selected graphics window.
04. 注意
使用HDevelop的代碼導出功能,為該算子生成的代碼可能與相關的HALCON算子具有不同的行為。 有關將HDevelop圖形算子導出為不同編程語言的代碼的詳細說明,請參閱“HDevelop User’s Guide” 中的Code Export -> General Aspects of Code Generation -> Graphics Windows一章。
05. 參數
無
06. 結果
dev_close_window總是返回2(H_MSG_TRUE)。
HDevelop例程
measure_screw.hdev Measure several features of a screw
find_pads.hdev Find pads on a die
display_operators.hdev Visualize results
dev_open_window.hdev Open graphics windows in HDevelop
dev_close_window.hdev Close graphics windows in HDevelop
clip_contours_xld.hdev Clip an XLD contour
advanced_visualization_settings.hdev Improve the visualization with transparency, anti-aliasing, and more
程序示例
* close all windows for i := 1 to 10 by 1dev_close_window () endfor read_image (For5, 'for5') get_image_size (For5, Width, Height) dev_open_window (0, 0, Width, Height, 'black', WindowHandle) dev_display (For5)07. 附錄
7.1 機器視覺博客匯總
網址:https://dengjin.blog.csdn.net/article/details/116837497
總結
以上是生活随笔為你收集整理的【机器视觉】 dev_close_window算子的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【机器视觉】 dev_close_too
- 下一篇: 【机器视觉】 dev_get_windo