MediaPlayer.SetSurfaceSize(Size) Method

Definition

Sets the size of the composition surface returned by GetSurface.

public:
 virtual void SetSurfaceSize(Size size) = SetSurfaceSize;
void SetSurfaceSize(Size const& size);
public void SetSurfaceSize(Size size);
function setSurfaceSize(size)
Public Sub SetSurfaceSize (size As Size)

Parameters

size
Size

An object representing the size of the composition surface.

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Remarks

The default size for the composition surface returned by GetSurface is 640x480, in pixels.

Applies to