Partager via


CUSTOMSLIDER.image

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The image attribute specifies or retrieves the name of the file containing the images corresponding to the various states of the custom slider.

        elementID.image

Possible Values

This attribute is a read/write String containing the name of an image file.

Remarks

The image attribute is required. It specifies an image file that consists of one or more sub-images, arranged either horizontally or vertically, representing the various states of the custom slider. Each sub-image must have the same dimensions as the positionImage or the custom slider will not work correctly. The height or width of the overall image must therefore be an even multiple of the height or width of the positionImage.

The supported image file types are BMP, JPG, PNG, and GIF (not including animated GIFs).

Examples

The following is an example of a custom slider image. The corresponding positionImage is shown in the example section of the positionImage property.

sample customslider image

The positionImage attribute also contains a code sample illustrating how the attributes of the CUSTOMSLIDER element are used.

Requirements

Requirement Value
Version
Windows Media Player version 7.0 or later

See also

CUSTOMSLIDER Element

CUSTOMSLIDER.positionImage