首页 > 其他分享 >基础设置之——dev_disp_text

基础设置之——dev_disp_text

时间:2024-03-02 14:44:35浏览次数:24  
标签:disp text dev window black shadow

1.默认参数设置

Text := '默认显示第一行'
Text[1] := '默认显示第二行'
Text[2] := '默认显示第三行'
dev_disp_text (Text, 'window', 12, 12, 'black', [], [])

 2.设置行、列值

dev_disp_text ('Row = 100\nColumn = 60\nColor = \'black\'', 'window', 100, 60, 'black', [], [])

 

3.dev_disp_text ('Row = \'center\',\nColumn = \'right\'\nColor = \'red\'', 'window', 'center', 'right', 'red', [], [])

 4.dev_disp_text ('Row = 372.7\nColumn = \'center\'\nColor = \'blue\'', 'window', 372.7, 'center', 'blue', [], [])

5.文本每一行设置不同颜色

dev_disp_text ('Row = \'bottom\'\nColumn = \'left\'\nColor = [\'magenta\', \'orange\', \'black\']', 'window', 'bottom', 'left', ['magenta','orange','black'], [], [])

6.不显示底框

dev_disp_text ('不显示底框\n\'box\' = \'false\'', 'window', 200, 40, 'black', 'box', 'false')

7.底框背景色设置

dev_disp_text ('底框背景色\n\'box_color\' = \'sky blue\'', 'window', 300, 40, 'black', 'box_color', 'sky blue')

 8.底框背景色16进制格式方式设置(16进制方式设置颜色,可通过最后两位来设置颜色的透明度)

dev_disp_text ('底框背景色16进制格式方式设置\n\'box_color\' = \'#ff8d2644\'', 'window', 340, 40, 'black', 'box_color', '#f28d2644')

9.底框圆弧度设置

dev_disp_text ('底框圆弧度设置\n\'border_radius\' = 0', 'window', 200, 400, 'black', 'border_radius', 0)

 dev_disp_text ('底框圆弧度设置\n\'border_radius\' = 10', 'window', 240, 400, 'black', 'border_radius', 10)

 10.padding设置

dev_disp_text ('padding设置\n\'box_padding\' = 0', 'window', 320, 400, 'black', 'box_padding', 0)
dev_disp_text ('padding设置\n\'box_padding\' = 10', 'window', 400, 400, 'black', 'box_padding', 10)

 11.阴影设置

dev_disp_text ('\'shadow\' = \'false\'', 'window', 200, 40, 'black', 'shadow', 'false')
* 'shadow_color': set the shadow color.
dev_disp_text ('\'shadow_color\' = \'green\'', 'window', 300, 40, 'black', 'shadow_color', 'green')
* 'shadow_color': it is valid to use colors with an alpha value (rgba)
* to display transparent shadows.
dev_disp_text ('\'shadow_color\' = \'#f28d2688\'', 'window', 340, 40, 'black', 'shadow_color', '#f28d2688')
* 'shadow_sigma': set the blurring of the shadow.
dev_disp_text ('\'shadow_sigma\' = 0', 'window', 200, 400, 'black', 'shadow_sigma', 0)
dev_disp_text ('\'shadow_sigma\' = 2.5', 'window', 240, 400, 'black', 'shadow_sigma', 2.5)
* 'shadow_dx', 'shadow_dy': set the offset of the shadow.
dev_disp_text ('\'shadow_dx\' = -5, \'shadow_dy\' = -3', 'window', 300, 400, 'black', ['shadow_dx','shadow_dy'], [-5,-3])
dev_disp_text ('\'shadow_dx\' = 3, \'shadow_dy\' = -3', 'window', 340, 400, 'black', ['shadow_dx','shadow_dy'], [3,-3])

12.以图像坐标系来显示文本

read_image (Image, 'clip')
dev_resize_window_fit_image (Image, 0, 0, 1024, 768)
binary_threshold (Image, Region, 'max_separability', 'dark', UsedThreshold)
connection (Region, ConnectedRegions)
select_shape (ConnectedRegions, SelectedRegions, 'area', 'and', 5000, 99999)
dev_display (Image)
dev_set_colored (12)
dev_display (SelectedRegions)
area_center (SelectedRegions, Area, Row, Column)
* Display the results in image coordinates. The position of this text is
* automatically adapted if the displayed iconic objects are moved or
* scaled.
dev_disp_text ('Area: ' + Area, 'image', Row, Column, 'black', 'box_color', '#ffffff77')

 

标签:disp,text,dev,window,black,shadow
From: https://www.cnblogs.com/echo-efun/p/18048584

相关文章

  • 使用developer API压缩
    key/***中转压缩url*/publicfinalstaticStringTINIFY_URL="https://api.tinify.com/shrink";/***tinifyapiKey*/publicfinalstaticStringAPI_KET="xxxxx"; controller@PostMapping("/u......
  • SP Devices ADQ1600-1.6 GSPS,14位RF数字化仪
    产品简介:♦单通道,14比特分辨率,1.6GSPS采样率♦800MHz模拟输入带宽及500MSamples板载内存♦适用于例如IF/RF采样及高速数据记录等不同的应用场合更多信息请加weixin-pt890111获取产品信息分辨率:14位输入信号范围:2.2Vpp输入通道:1触发:软件/扩展/级别时钟:整数/分机(SMA)外部......
  • SP Devices ADQ7WB-6.5 GHz带宽的RF数字化仪
    产品简介:♦2通道,12bit分辨率,5GSPS采样率♦6.5GHz模拟输入带宽及4GB板载内存♦适用射频监控和记录等应用更多信息请加weixin-pt890111获取产品优势 1.针对射频应用进行了优化 ADQ7WB是一款RF数字转换器,其模拟输入带宽为6.5GHz。高模拟输入带宽与高采样率相结合,可实现IF/......
  • SP Devices ADQ14 14bit PCIe数字化仪
    产品简介:♦1/2通道,14bit分辨率,2GSPS采样率♦3GHz模拟输入带宽及4GB板载内存♦可以灵活选择通道数,采样率和接口更多信息请加weixin-pt890111获取产品优势灵活而高性能ADQ14是一个14位数字转换器系列,具有1个,2个或4个通道以及0.5、1或2GSPS采样率。它也可提供交流或直流耦......
  • SP Devices ADQ7DC-1/2通道,14bit分辨率,10GSPS采样率
    产品优势1.高分辨率和高采样率的独特结合ADQ7DC具有14bit和10GSPS采样率,提高了高采样率应用中的分辨率,超出了以前的范围。这种性能提升有效地帮助我们的客户克服了性能折衷,并在许多应用中取得了重大进步。ADQ7DC可以单通道或双通道模式工作,分别具有10或5GSPS采样率。 更多......
  • 基础设置之——dev_open_dialog
    dev_open_dialog('about_dialog') dev_open_dialog('duplicate_procedure_dialog') dev_open_dialog('export_dialog') dev_open_dialog('open_graphics_windows_dialog') dev_open_dialog('insert_visualizati......
  • 基础设置之——dev_open_file_dialog
    >>>dev_open_file_dialog(::Filter,Mode,Path:Selection)Mode可取值:'default','dir','read','read_multi','write'>>dev_open_file_dialog('read_image','read_multi'......
  • 基础设置之——dev_set_check
    dev_set_check(::Mode:)dev_set_checkspecifieshowHDevelophastoreactincaseofanerror,i.e.,ifthereturnstateofanoperatorisnotH_MSG_TRUE(2).IfModehasthevalue'give_error'---whichisthesystemdefault---anerroneousop......
  • dev_set_lut显示效果
    1.原图——dev_set_lut('default')2.dev_set_lut('rainbow')3.dev_set_lut('temperature') 4.dev_set_lut('inverse') 其它可设置参数:*'default','linear','inverse','sqr','inv_......
  • $\text{20240301}$ 字符串练习题解
    \(\text{20240301}\)字符串练习题解一定要写冬令营的题吗?遗憾的。P9717给了一个\(n\)个数的首尾相接的字符串,求若干个操作后能形成的不同的字符串大小。一次操作定义为:将字符串内所有的\(\text{01}\)同时改成\(\text{10}\),如图。通过这张图我们似乎发现了一个规律,这......