Share via


Player6.DisplaySize (deprecated)

Windows Media Player SDK banner art

This page documents a feature of the Windows Media Player 6.4 ActiveX control. We recommend that you migrate your content to use the Windows Media Player 9 Series ActiveX control. For more information about the Windows Media Player 9 Series ActiveX control, see the Windows Media Player 9 Series SDK.

This property specifies or retrieves the size of the image display window.

Syntax

MediaPlayer.DisplaySize

Possible Values

This property is read/write Long containing one of the following values.

Value Visual Basic constant Description
0 mpDefaultSize Same size as the source image.
1 mpHalfSize Width and height are one-half of the source image dimensions, resulting in an image that is one-fourth the original size.
2 mpDoubleSize Double the dimensions of the source image.
3 mpFullScreen Size of the entire screen.
4 mpFitToSize Size specified at design time.
5 mpOneSixteenthScreen One-sixteenth the size of the screen.
6 mpOneFourthScreen One-quarter the size of the screen.
7 mpOneHalfScreen Half the size of the screen.

Remarks

This property can only be set if the value of the AllowChangeDisplaySize property is true.

If the value of the AutoSize property is true, Windows Media Player automatically changes its size to accommodate the video image at the size specified by the DisplaySize property. Otherwise, Windows Media Player does not resize, and the image is centered in the video display panel.

If AutoSize is true and the DisplaySize property is set to 4 (mpFitToSize), the video image displays at the default size.

Note   For DVD playback, if this property equals 5, the image display window displays at half the size of the screen; if it equals 6, the window displays at one-sixteenth the size of the screen; and if it equals 7, the window displays at one-quarter the size of the screen. For values of 0 through 4, the image display window resizes according to the values show in the above table.

Requirements

Version: Windows Media Player version 6.4.

Library: Use msdxm.ocx.

Platform: Windows 98 Second Edition or higher.

See Also