DisplaySize

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

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

Compatibility: Windows Media Player


MediaPlayer.DisplaySize [ = lSize ]

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.

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.

Windows Embedded CEWindows CE 3.0 and later

Community Additions

Show: