SoftwareBitmap.CreateCopyFromBuffer Método

Definição

Sobrecargas

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

Cria um novo SoftwareBitmap executando uma cópia profunda do buffer fornecido. As modificações nos dados no novo SoftwareBitmap não afetarão o buffer do qual ele foi criado.

CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32)

Cria um novo SoftwareBitmap executando uma cópia profunda do buffer fornecido. As modificações nos dados no novo SoftwareBitmap não afetarão o buffer do qual ele foi criado.

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

Cria um novo SoftwareBitmap executando uma cópia profunda do buffer fornecido. As modificações nos dados no novo SoftwareBitmap não afetarão o buffer do qual ele foi criado.

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

Parâmetros

source
IBuffer

O buffer de origem do qual a cópia será criada.

format
BitmapPixelFormat

O formato de pixel do bitmap de software.

width
Int32

int

A largura do bitmap de software, em pixels.

height
Int32

int

A altura do bitmap de software, em pixels.

alpha
BitmapAlphaMode

O modo alfa do bitmap de software.

Retornos

O novo bitmap de software.

Atributos

Confira também

Aplica-se a

CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32)

Cria um novo SoftwareBitmap executando uma cópia profunda do buffer fornecido. As modificações nos dados no novo SoftwareBitmap não afetarão o buffer do qual ele foi criado.

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

Parâmetros

source
IBuffer

O buffer de origem do qual a cópia será criada.

format
BitmapPixelFormat

O formato de pixel do bitmap de software.

width
Int32

int

A largura do bitmap de software, em pixels.

height
Int32

int

A altura do bitmap de software, em pixels.

Retornos

O novo bitmap de software.

Atributos

Comentários

Use esse método e suas sobrecargas para copiar dados do PixelBuffer de um WriteableBitmap para um SoftwareBitmap existente.

Confira também

Aplica-se a