您的位置:首页 > 其它

Kodi ——6 Controls (5) MultiImage Control

2016-06-14 11:59 351 查看

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: