Partager via


DisplaySize

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This property specifies the size of the image display window. This property is read/write.

Compatibility: Windows Media Player

Syntax

MediaPlayer.DisplaySize [ = lSize ]

Parameters

  • lSize
    Long value specifying the size of the image display window. The following table shows the 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.

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

Windows Embedded CE Windows CE 3.0 and later

See Also

Reference

Windows Media Player Properties
AllowChangeDisplaySize
AutoSize (Windows Media Player)

Concepts

Compatibility Modes
Customizing the Windows Media Player Control User Interface