VideoFrame.CopyToAsync 方法

定义

重载

CopyToAsync(VideoFrame)

将当前 VideoFrame 复制到提供的 VideoFrame 对象中。

CopyToAsync(VideoFrame, IReference<BitmapBounds>, IReference<BitmapBounds>)

将当前 VideoFrame 中的指定矩形复制到所提供的 VideoFrame 对象的指定矩形中。

CopyToAsync(VideoFrame)

将当前 VideoFrame 复制到提供的 VideoFrame 对象中。

public:
 virtual IAsyncAction ^ CopyToAsync(VideoFrame ^ frame) = CopyToAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction CopyToAsync(VideoFrame const& frame);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction CopyToAsync(VideoFrame frame);
function copyToAsync(frame)
Public Function CopyToAsync (frame As VideoFrame) As IAsyncAction

参数

frame
VideoFrame

当前帧将复制到的目标视频帧。

返回

异步操作。

属性

注解

目标帧必须具有与源帧相同的像素格式、宽度、高度和 alpha 模式。

适用于

CopyToAsync(VideoFrame, IReference<BitmapBounds>, IReference<BitmapBounds>)

将当前 VideoFrame 中的指定矩形复制到所提供的 VideoFrame 对象的指定矩形中。

public:
 virtual IAsyncAction ^ CopyToAsync(VideoFrame ^ frame, IReference<BitmapBounds> ^ sourceBounds, IReference<BitmapBounds> ^ destinationBounds) = CopyToAsync;
/// [Windows.Foundation.Metadata.Overload("CopyToWithBoundsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction CopyToAsync(VideoFrame const& frame, IReference<BitmapBounds> const& sourceBounds, IReference<BitmapBounds> const& destinationBounds);
[Windows.Foundation.Metadata.Overload("CopyToWithBoundsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction CopyToAsync(VideoFrame frame, System.Nullable<BitmapBounds> sourceBounds, System.Nullable<BitmapBounds> destinationBounds);
function copyToAsync(frame, sourceBounds, destinationBounds)
Public Function CopyToAsync (frame As VideoFrame, sourceBounds As Nullable(Of BitmapBounds), destinationBounds As Nullable(Of BitmapBounds)) As IAsyncAction

参数

frame
VideoFrame

当前帧将复制到的目标视频帧。

sourceBounds

IReference<BitmapBounds>

Nullable<BitmapBounds>

BitmapBounds 引用,指定应复制的源帧内的矩形。

destinationBounds

IReference<BitmapBounds>

Nullable<BitmapBounds>

BitmapBounds 引用,指定源内容复制到的目标帧内的矩形。

返回

异步操作。

属性

Windows 要求

设备系列
Windows 10, version 1803 (在 10.0.17134.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v6.0 中引入)

适用于