0
点赞
收藏
分享

微信扫一扫

【机器视觉】 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 1
dev_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 机器视觉博客汇总



举报

相关推荐

0 条评论