VideoFrame.CopyToAsync Method

Definition

Overloads

CopyToAsync(VideoFrame)

Copies the current VideoFrame into a provided VideoFrame object.

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

Copies the specified rectangle in the current VideoFrame into the specified rectangle of a provided VideoFrame object.

CopyToAsync(VideoFrame)

Copies the current VideoFrame into a provided VideoFrame object.

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

Parameters

frame
VideoFrame

The target video frame into which the current frame will be copied.

Returns

An asynchronous action.

Attributes

Remarks

The target frame must have the same pixel format, width, height, and alpha mode as the source frame.

Applies to

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

Copies the specified rectangle in the current VideoFrame into the specified rectangle of a provided VideoFrame object.

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

Parameters

frame
VideoFrame

The target video frame into which the current frame will be copied.

sourceBounds

IReference<BitmapBounds>

Nullable<BitmapBounds>

A BitmapBounds reference specifying the rectangle within the source frame that should be copied.

destinationBounds

IReference<BitmapBounds>

Nullable<BitmapBounds>

A BitmapBounds reference specifying the rectangle within the target frame into which the source content is copied.

Returns

An asynchronous action.

Attributes

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Applies to