共用方式為


SoftwareBitmap.CreateCopyFromSurfaceAsync 方法

定義

多載

CreateCopyFromSurfaceAsync(IDirect3DSurface)

執行所提供IDirect3DSurface的深層複本,以非同步方式建立新的SoftwareBitmap。 修改新 SoftwareBitmap 中的資料不會影響其建立來源的介面。

CreateCopyFromSurfaceAsync(IDirect3DSurface, BitmapAlphaMode)

執行所提供IDirect3DSurface的深層複本,以非同步方式建立新的SoftwareBitmap。 修改新 SoftwareBitmap 中的資料不會影響其建立來源的介面。

CreateCopyFromSurfaceAsync(IDirect3DSurface)

執行所提供IDirect3DSurface的深層複本,以非同步方式建立新的SoftwareBitmap。 修改新 SoftwareBitmap 中的資料不會影響其建立來源的介面。

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)

參數

surface
IDirect3DSurface

要從中建立複本的來源介面。

傳回

非同步作業,會在成功完成時傳回 SoftwareBitmap

屬性

另請參閱

適用於

CreateCopyFromSurfaceAsync(IDirect3DSurface, BitmapAlphaMode)

執行所提供IDirect3DSurface的深層複本,以非同步方式建立新的SoftwareBitmap。 修改新 SoftwareBitmap 中的資料不會影響其建立來源的介面。

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)

參數

surface
IDirect3DSurface

要從中建立複本的來源介面。

alpha
BitmapAlphaMode

軟體點陣圖的 Alpha 模式。

傳回

非同步作業,會在成功完成時傳回 SoftwareBitmap

屬性

另請參閱

適用於