Language

SoftwareBitmap.CreateCopyFromBuffer メソッド

定義

オーバーロード

Name 説明
CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32, BitmapAlphaMode)

指定されたバッファーのディープ コピーを実行して、新しい SoftwareBitmap を作成します。 新しい SoftwareBitmap のデータを変更しても、作成元のバッファーには影響しません。

CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32)

指定されたバッファーのディープ コピーを実行して、新しい SoftwareBitmap を作成します。 新しい SoftwareBitmap のデータを変更しても、作成元のバッファーには影響しません。

CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32, BitmapAlphaMode)

指定されたバッファーのディープ コピーを実行して、新しい SoftwareBitmap を作成します。 新しい SoftwareBitmap のデータを変更しても、作成元のバッファーには影響しません。

public:
 static SoftwareBitmap ^ CreateCopyFromBuffer(IBuffer ^ source, BitmapPixelFormat format, int width, int height, BitmapAlphaMode alpha);
/// [Windows.Foundation.Metadata.Overload("CreateCopyWithAlphaFromBuffer")]
 static SoftwareBitmap CreateCopyFromBuffer(IBuffer const& source, BitmapPixelFormat const& format, int const& width, int const& height, BitmapAlphaMode const& alpha);
[Windows.Foundation.Metadata.Overload("CreateCopyWithAlphaFromBuffer")]
public static SoftwareBitmap CreateCopyFromBuffer(IBuffer source, BitmapPixelFormat format, int width, int height, BitmapAlphaMode alpha);
function createCopyFromBuffer(source, format, width, height, alpha)
Public Shared Function CreateCopyFromBuffer (source As IBuffer, format As BitmapPixelFormat, width As Integer, height As Integer, alpha As BitmapAlphaMode) As SoftwareBitmap

パラメーター

source
IBuffer

コピーの作成元となるソース バッファー。

format
BitmapPixelFormat

ソフトウェア ビットマップのピクセル形式。

width
Int32

int

ソフトウェア ビットマップの幅 (ピクセル単位)。

height
Int32

int

ソフトウェア ビットマップの高さ (ピクセル単位)。

alpha
BitmapAlphaMode

ソフトウェア ビットマップのアルファ モード。

返品

新しいソフトウェア ビットマップ。

属性

関連項目

適用対象

CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32)

指定されたバッファーのディープ コピーを実行して、新しい SoftwareBitmap を作成します。 新しい SoftwareBitmap のデータを変更しても、作成元のバッファーには影響しません。

public:
 static SoftwareBitmap ^ CreateCopyFromBuffer(IBuffer ^ source, BitmapPixelFormat format, int width, int height);
/// [Windows.Foundation.Metadata.Overload("CreateCopyFromBuffer")]
 static SoftwareBitmap CreateCopyFromBuffer(IBuffer const& source, BitmapPixelFormat const& format, int const& width, int const& height);
[Windows.Foundation.Metadata.Overload("CreateCopyFromBuffer")]
public static SoftwareBitmap CreateCopyFromBuffer(IBuffer source, BitmapPixelFormat format, int width, int height);
function createCopyFromBuffer(source, format, width, height)
Public Shared Function CreateCopyFromBuffer (source As IBuffer, format As BitmapPixelFormat, width As Integer, height As Integer) As SoftwareBitmap

パラメーター

source
IBuffer

コピーの作成元となるソース バッファー。

format
BitmapPixelFormat

ソフトウェア ビットマップのピクセル形式。

width
Int32

int

ソフトウェア ビットマップの幅 (ピクセル単位)。

height
Int32

int

ソフトウェア ビットマップの高さ (ピクセル単位)。

返品

新しいソフトウェア ビットマップ。

属性

注釈

WriteableBitmap の PixelBuffer から既存の SoftwareBitmap にデータをコピーするには、このメソッドとそのオーバーロードを使用します。

関連項目

適用対象