其中Image标签的src属性的值是被调用的VirtualScreen的标签name的值,其可以将一系列的元素重复使用; 如果使用自定义宽高的虚拟屏幕,需要在使用虚拟屏幕的标签上同时填写宽高限制。
示例一:将多张图片同时控制在虚拟屏幕中展示;Image标签的宽、高会设置为虚拟屏幕的宽和高,绘制起点的坐标为Image标签的x和y。
<VirtualScreen name="vs"> <Image x="0" y="0" src="dianhua.png"/> <Image x="100" y="100" src="ty.png"/> </VirtualScreen> <Image x="0" y="0" w="1080" h="1920" src="vs" useVirtualScreen="true"/> <Image x="200" y="200" w="1080" h="1920" src="vs" useVirtualScreen="true"/> <Image x="400" y="400" w="1080" h="1920" src="vs" useVirtualScreen="true"/>