set_fontsets the font for the output window. The font is used by the operatorswrite_string,read_stringetc. A default font (which can be set viaset_system('default_font',Fontname)) is assigned when a window is opened. The assigned font can be changed withset_font. All available fonts ...
set_font— Set the font used for text output. Signature set_font( : :WindowHandle,Font: ) Description The syntax for the specification ofFontis the following: FONTNAME[-STYLE]-FONT_SIZE. The optional STYLE may be one of the following (other values are possible as well): ...
else HWindowXCtrl1.HalconWindow.SetFont('-黑体-14-*-1-*-*-1-'); HWindowXCtrl1.HalconWindow.WriteString('-FontName-Height-Width-Italic-Underlined-Strikeout-[Bold-] '); end;
在C++中,一个dev_disp_text()函数的导出对应 set_display_font()和DispText()两个函数,一般在C++中是先调用set_display_font()设置好字体后,再调用DispText()函数,但是这里却有着致命的bug; 这个截图是halcon导出文件中set_display_font函数中的部分代码,原理通过QueryFont(hv_WindowHandle, &hv_AvailableFonts)...
halcon-disp_message⽂本输出和set_display_font设置字体 在HDevelop中 read_image (Image, 'D:/bb/tu/ma.jpg')dev_open_window(0,700,500,300,'black',WindowHandle)dev_display(Image)disp_message(WindowHandle, '天津塘沽', 'window', -1, -1, 'blue', 'true' )*输出字符串 *参数1:窗⼝句柄...
halcon-disp_message文本输出和set_display_font设置字体 在HDevelop中 read_image (Image, 'D:/bb/tu/ma.jpg') dev_open_window(0,700,500,300,'black',WindowHandle) dev_display(Image) disp_message(WindowHandle, '天津塘沽', 'window', -1, -1, 'blue', 'true' )...
set_font( : : WindowHandle, Font : )复制代码 第一个是窗口句柄,不是消息句柄,第二个是输入...
"default_font" *):默认字体 "update_lut":是否使用系统默认颜色表 "use_window_thread":Windows下设置为true启用所有halcon的图形文本消息线程,提高运行速度 "graphic_stack_size":设定图形堆栈大小 "x_package":数据传输包大小,如果包过大导致错误,可尝试改小 ...
set_display_font (WindowHandle, 14, 'mono', 'true', 'false') dev_set_color ('green') /* 关闭活动窗口 读取图像 打开活动窗口 设置显示字体 dev_set_color 设置用于区域,图形或轮廓的显示颜色,该颜色也可以用于今后打开的图形窗口,它的有效时间为直到下次dev_set_color()定义的有效颜色 ...
The syntax of possible fontnames in Value is described at set_font. Value: Name of Font. Default: 'fixed' 'update_lut': Determines whether the HALCON look-up color tables are adapted according to their environment or not. Such hardware-dependent color tables are no longer in use, so ...