Contents Index Topic Contents | |
Previous Topic: DisplayMode Next Topic: Duration |
DisplaySize Property
Sets or retrieves a value specifying the size of the image display window.
Syntax
MediaPlayer.DisplaySize [ = lSize ]Possible Values
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, Microsoft® Windows Media™ Player 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.
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.
See Also
AllowChangeDisplaySize, AutoSize, EnableFullScreenControls, Customizing the User Interface
Top of Page
© 1999 Microsoft and/or its suppliers. All rights reserved. Terms of Use.