基本操作之——Object插入

insert_obj — Insert objects into an iconic object tuple.   插入对象到图标对象数组中

*以下实例展示了,在垂直两张图像中,插入一张蓝莓图像

dev_update_off ()
dev_close_window ()
dev_open_window (0, 0, 640, 480, 'white', WindowHandle)
set_display_font (WindowHandle, 16, 'mono', 'true', 'false')
*
* 加载苹果、胡萝卜和蓝莓的图像
read_image (Images, ['food/vegetables/apple_1','food/vegetables/carrot_1'])
read_image (ImageBlueberry, 'food/vegetables/blueberry_1')
*
* There are two objects in the iconic array.
*图标数组中有两个对象
tile_images (Images, TiledImage, 1, 'vertical')
dev_display (TiledImage)
dev_disp_text ('图标数组中有两个对象', 'window', 'top', 'left', 'black', 'box_color', '#00ffffc4')
stop ()

 

*
*图像数组,第一个元素后插入蓝莓图像
insert_obj (Images, ImageBlueberry, ImagesExtended, 2)
tile_images (ImagesExtended, ImagesExtendedTiled, 1, 'vertical')
dev_display (ImagesExtendedTiled)
dev_disp_text ('两张图像中间插入一张图像', 'window', 'top', 'left', 'black', 'box_color', '#00ffffc4')

 

posted @   echo-efun  阅读(46)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 展开说说关于C#中ORM框架的用法!
点击右上角即可分享
微信分享提示