Windows Media Player 11 SDK Media.imageSourceHeightÂ
Previous | Next |
Media.imageSourceHeight
The ImageSourceHeight property retrieves the height of the current media item in pixels.
Syntax
Possible Values
This property is a read-only Number (long).
Remarks
If the media item is not the current one, this property returns zero.
To retrieve the value of this property, read access to the library is required. For more information, see Library Access.
Example Code
The following JScript example uses Media.imageSourceHeight to display the image size, in pixels, of the current media item. The information is printed to an HTML TEXTAREA element named VideoSize. The Player object was created with ID = "player".
Requirements
Version: Windows Media Player version 7.0 or later.
Library: Use wmp.dll.
See Also
Previous | Next |