网淘巴来吧,欢迎您!

返回首页 微信
微信
手机版
手机版

dev_set_draw—定义区域填充模式

2022-11-05 新闻来源:网淘巴 围观:231
''

简短描述

 dev_set_draw—定义区域填充模式。

签名

 dev_set_draw( : : DrawMode : )

描述

 Dev_set_draw定义了区域的填充模式。如果DrawMode设置为'fill',区域显示为填充,如果设置为'margin',只显示轮廓。在'margin'模式下,轮廓的外观会受到dev_set_line_width和set_line_style的影响。

参数

 

DrawMod[文]e (输入参数) string&[章]rarr;(s[来]tring)

区域输出的填充[自]模式。

默认值:'fill'

值列表:'fill', 'margin'

例程

 

read_image(Image,'monkey')
threshold(Image,Region,128,255)
dev_clear_window ()
dev_set_color('red')
dev_set_draw('fill')
dev_display(Region)
dev_set_color('white')
dev_set_draw('margin')
dev_display(Region)

 

返回结果

 

 

免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏

本文链接:https://www.wtao8.com/post/227.html 转载需授权!

分享到:

相关文章

龙年
大发