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 引進)

適用於