网淘吧来吧,欢迎您!

dev_set_draw—定义区域填充模式

2022-11-05 新闻来源:网淘吧 围观:774
电脑广告
手机广告

简短描述

 dev_set_draw—定义区域填充模式。

签名

 dev_set_draw( : : DrawMode : )

描述

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

参数

 

DrawMode (输入参数) string→(string)

区域输出的填充模式。

默认值:'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)

 

返回结果

 

 

天猫隐藏优惠券

网淘吧

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

文章底部电脑广告
手机广告位-内容正文底部

相关文章

您是本站第463293名访客 今日有0篇新文章/评论