MediaPlayer.CopyFrameToVideoSurface 方法

定義

多載

CopyFrameToVideoSurface(IDirect3DSurface)

將目前的視訊畫面從 MediaPlayer 複製到提供的 IDirect3DSurface

CopyFrameToVideoSurface(IDirect3DSurface, Rect)

將目前視訊畫面從 MediaPlayer 複製到所提供 IDirect3DSurface內的指定目標矩形。

CopyFrameToVideoSurface(IDirect3DSurface)

將目前的視訊畫面從 MediaPlayer 複製到提供的 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)

參數

destination
IDirect3DSurface

視訊畫面複製到其中的 IDirect3DSurface

屬性

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

備註

如需使用CopyFrameToVideoSurface將 GPU 效果套用至視訊畫面的資訊,請參閱使用 MediaPlayer 搭配 MediaPlayer 播放音訊和視訊的畫面伺服器模式一節。

另請參閱

適用於

CopyFrameToVideoSurface(IDirect3DSurface, Rect)

將目前視訊畫面從 MediaPlayer 複製到所提供 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)

參數

destination
IDirect3DSurface

視訊畫面複製到其中的 IDirect3DSurface

targetRectangle
Rect

複製視訊畫面的 IDirect3DSurface 內的目標矩形。

屬性

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

備註

如需使用CopyFrameToVideoSurface將 GPU 效果套用至視訊畫面的資訊,請參閱使用 MediaPlayer 搭配 MediaPlayer 播放音訊和視訊的畫面伺服器模式一節。

另請參閱

適用於