Jaa


MediaPlayer.CopyFrameToVideoSurface Method

Definition

Overloads

CopyFrameToVideoSurface(IDirect3DSurface)

Copies the current video frame from the MediaPlayer to the provided IDirect3DSurface.

CopyFrameToVideoSurface(IDirect3DSurface, Rect)

Copies the current video frame from the MediaPlayer to the specified target rectangle within the provided IDirect3DSurface.

CopyFrameToVideoSurface(IDirect3DSurface)

Copies the current video frame from the MediaPlayer to the provided IDirect3DSurface.

public:
 virtual void CopyFrameToVideoSurface(IDirect3DSurface ^ destination) = CopyFrameToVideoSurface;
/// [Windows.Foundation.Metadata.Overload("CopyFrameToVideoSurface")]
void CopyFrameToVideoSurface(IDirect3DSurface const& destination);
[Windows.Foundation.Metadata.Overload("CopyFrameToVideoSurface")]
public void CopyFrameToVideoSurface(IDirect3DSurface destination);
function copyFrameToVideoSurface(destination)
Public Sub CopyFrameToVideoSurface (destination As IDirect3DSurface)

Parameters

destination
IDirect3DSurface

The IDirect3DSurface to which the video frame is copied.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

For information on using CopyFrameToVideoSurface to apply GPU effects to video frames, see the Use MediaPlayer in frame server mode section of Play audio and video with MediaPlayer.

See also

Applies to

CopyFrameToVideoSurface(IDirect3DSurface, Rect)

Copies the current video frame from the MediaPlayer to the specified target rectangle within the provided IDirect3DSurface.

public:
 virtual void CopyFrameToVideoSurface(IDirect3DSurface ^ destination, Rect targetRectangle) = CopyFrameToVideoSurface;
/// [Windows.Foundation.Metadata.Overload("CopyFrameToVideoSurfaceWithTargetRectangle")]
void CopyFrameToVideoSurface(IDirect3DSurface const& destination, Rect const& targetRectangle);
[Windows.Foundation.Metadata.Overload("CopyFrameToVideoSurfaceWithTargetRectangle")]
public void CopyFrameToVideoSurface(IDirect3DSurface destination, Rect targetRectangle);
function copyFrameToVideoSurface(destination, targetRectangle)
Public Sub CopyFrameToVideoSurface (destination As IDirect3DSurface, targetRectangle As Rect)

Parameters

destination
IDirect3DSurface

The IDirect3DSurface to which the video frame is copied.

targetRectangle
Rect

The target rectangle within the IDirect3DSurface to which the video frame is copied.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

For information on using CopyFrameToVideoSurface to apply GPU effects to video frames, see the Use MediaPlayer in frame server mode section of Play audio and video with MediaPlayer.

See also

Applies to