SoftwareBitmap.CreateCopyFromSurfaceAsync Method

Definition

Overloads

CreateCopyFromSurfaceAsync(IDirect3DSurface)

Asynchronously creates a new SoftwareBitmap by performing a deep copy of the provided IDirect3DSurface. Modifications to the data in the new SoftwareBitmap will not effect the surface from which it was created.

CreateCopyFromSurfaceAsync(IDirect3DSurface, BitmapAlphaMode)

Asynchronously creates a new SoftwareBitmap by performing a deep copy of the provided IDirect3DSurface. Modifications to the data in the new SoftwareBitmap will not effect the surface from which it was created.

CreateCopyFromSurfaceAsync(IDirect3DSurface)

Asynchronously creates a new SoftwareBitmap by performing a deep copy of the provided IDirect3DSurface. Modifications to the data in the new SoftwareBitmap will not effect the surface from which it was created.

public:
 static IAsyncOperation<SoftwareBitmap ^> ^ CreateCopyFromSurfaceAsync(IDirect3DSurface ^ surface);
/// [Windows.Foundation.Metadata.Overload("CreateCopyFromSurfaceAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<SoftwareBitmap> CreateCopyFromSurfaceAsync(IDirect3DSurface const& surface);
[Windows.Foundation.Metadata.Overload("CreateCopyFromSurfaceAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<SoftwareBitmap> CreateCopyFromSurfaceAsync(IDirect3DSurface surface);
function createCopyFromSurfaceAsync(surface)
Public Shared Function CreateCopyFromSurfaceAsync (surface As IDirect3DSurface) As IAsyncOperation(Of SoftwareBitmap)

Parameters

surface
IDirect3DSurface

The source surface from which the copy will be created.

Returns

An asynchronous operation that returns a SoftwareBitmap on successful completion.

Attributes

See also

Applies to

CreateCopyFromSurfaceAsync(IDirect3DSurface, BitmapAlphaMode)

Asynchronously creates a new SoftwareBitmap by performing a deep copy of the provided IDirect3DSurface. Modifications to the data in the new SoftwareBitmap will not effect the surface from which it was created.

public:
 static IAsyncOperation<SoftwareBitmap ^> ^ CreateCopyFromSurfaceAsync(IDirect3DSurface ^ surface, BitmapAlphaMode alpha);
/// [Windows.Foundation.Metadata.Overload("CreateCopyWithAlphaFromSurfaceAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<SoftwareBitmap> CreateCopyFromSurfaceAsync(IDirect3DSurface const& surface, BitmapAlphaMode const& alpha);
[Windows.Foundation.Metadata.Overload("CreateCopyWithAlphaFromSurfaceAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<SoftwareBitmap> CreateCopyFromSurfaceAsync(IDirect3DSurface surface, BitmapAlphaMode alpha);
function createCopyFromSurfaceAsync(surface, alpha)
Public Shared Function CreateCopyFromSurfaceAsync (surface As IDirect3DSurface, alpha As BitmapAlphaMode) As IAsyncOperation(Of SoftwareBitmap)

Parameters

surface
IDirect3DSurface

The source surface from which the copy will be created.

alpha
BitmapAlphaMode

The alpha mode of the software bitmap.

Returns

An asynchronous operation that returns a SoftwareBitmap on successful completion.

Attributes

See also

Applies to