PLAYLIST.backgroundImage

[与此页面关联的功能(Windows 媒体播放器 SDK)是旧版功能。 它已被 MediaPlayer 取代。 MediaPlayer 已针对Windows 10和Windows 11进行了优化。 Microsoft 强烈建议新代码尽可能使用 MediaPlayer 而不是 Windows 媒体播放器 SDK。 如果可能,Microsoft 建议重写使用旧 API 的现有代码以使用新 API。]

backgroundImage 属性指定或检索背景图像。

        elementID.backgroundImage

可能的值

此属性是包含图像文件名称的读/写 字符串 。 它没有默认值。

备注

如果图像高度和宽度小于 PLAYLIST 元素的高度和宽度,则会平铺图像。 支持的格式为 BMP、JPG、GIF 和 PNG。

为背景图像指定“渐变”值会导致播放列表的背景显示为颜色渐变。 这意味着背景色在背景) 顶部的 PLAYLIST.backgroundColor (和 PLAYLIST.statusColor 值之间逐渐转换。

要求

要求
版本
Windows 媒体播放器版本 7.0 或更高版本,渐变功能Windows 媒体播放器 10

另请参阅

PLAYLIST 元素