Kodi ——6 Controls (5) MultiImage Control

6.5 MultiImage Control

      多Image控件用于从XBMC中的文件夹显示图像的幻灯片。您可以选择幻灯片的位置和大小,以及时间信息。

6.5.1 Example

<control type="multiimage" id="1">
      <description>My first slideshow control</description>
      <left>80</left>
      <top>60</top>
      <width>250</width>
      <height>200</height>
      <visible>true</visible>
      <imagepath>myimagepath</imagepath>
      <info></info>
      <timeperimage>5000</timeperimage>
      <fadetime>2000</fadetime>
      <pauseatend>10000</pauseatend>
      <randomize>true</randomize>
      <loop>no</loop>
      <aspectratio>stretch</aspectratio>
</control>

6.5.2 Image Size and Type Restrictions

    对于<texture>标记,并在其他控制的所有<texture>标签,还有一小部分规则,你应该尽可能遵循:

    6.5.2.1 Formats
    如果您想使用完整的8bit透明度,那么使用PNG。如果你只需要一个透明的颜色,你可以在<colorkey>标签注明这一点,然后任何图像都可以。建议您尽可能使用PNG和JPG。因此图像(KB)的大小不为图像的像素大小一样重要 - 可以随意将它们(如PNG)以无损的方式存储就可以了

   唯一的例外是,如果你需要一个动画纹理。在这种情况下,我们只支持GIF动画。也有一些GIF动画,可能无法正常工作。用ImageReady中CS,并确保您设置GIF,动画“恢复到背景”,他们应该正常工作。

6.5.3 Available tags and attributes

    除了默认控件标签下面的标签可用。请注意,每个标签仅是小写。这一点很重要,因为XML标签是区分大小写的。
TagDescription
imagepathSpecifies the path containing the images to use for the slideshow. Kodi will first look inside the compressed Textures.xbt file for images, and then will look in the actual folder. The path is relative to the media/ folder if it is not specified completely.
infoSpecifies the information that this image control is presenting. Kodi will select the texture to use based on this tag. See here for more information.
timeperimageTime in milliseconds that an image is shown for.
fadetimeTime in milliseconds to fade between images.
pauseatendTime in milliseconds to pause (in addition to <timeperimage>) on the last image at the end of a complete cycle through the images. Only useful if <loop> is set to yes.
loopIf set to no, the last image will display indefinitely. Setting it to yes will loop around once they reach the last image. Defaults to yes.
aspectratioThis specifies how the image will be drawn inside the box defined by <width> and <height>. See here for more info

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值