Kodi ——6 Controls (5) MultiImage Control

来源:互联网 发布:上海手机数据恢复公司 编辑:程序博客网 时间:2024/05/13 07:11

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标签是区分大小写的。
TagDescriptionimagepathSpecifies 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
0 0