DisplaySize

This property specifies the size of the image display window.

Compatibility: Windows Media Player

MediaPlayer.DisplaySize [ = lSize ]

Parameters

  • lSize
    Long value specifying the size of the image display window. It can have one of the following possible 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 size 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.

    This property is read/write.

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 control automatically changes its size to accommodate the video image at the size specified by the DisplaySize property. Otherwise, the 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.

Requirements

OS Versions: Windows CE 3.0 and later.

See Also

Windows Media Player Properties | Compatibility Modes | Customizing the User Interface | AllowChangeDisplaySize | AutoSize

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.