Microsoft Windows CE 3.0  

DisplaySize

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Sets or retrieves a value specifying 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 AllowChangeDisplaySizeproperty is true.

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

If AutoSizeis true and the DisplaySizeproperty is set to 4 ( mpFitToSize), the video image displays at the default size.

See Also

AllowChangeDisplaySize, AutoSize, Customizing the User Interface