SoftwareBitmap.CreateCopyFromBuffer Método

Definición

Sobrecargas

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

Crea un nuevo Objeto SoftwareBitmap realizando una copia en profundidad del búfer proporcionado. Las modificaciones en los datos del nuevo SoftwareBitmap no afectarán al búfer desde el que se creó.

CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32)

Crea un nuevo Objeto SoftwareBitmap realizando una copia en profundidad del búfer proporcionado. Las modificaciones en los datos del nuevo SoftwareBitmap no afectarán al búfer desde el que se creó.

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

Crea un nuevo Objeto SoftwareBitmap realizando una copia en profundidad del búfer proporcionado. Las modificaciones en los datos del nuevo SoftwareBitmap no afectarán al búfer desde el que se creó.

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

Búfer de origen desde el que se creará la copia.

format
BitmapPixelFormat

Formato de píxel del mapa de bits de software.

width
Int32

int

Ancho del mapa de bits de software, en píxeles.

height
Int32

int

Alto del mapa de bits de software, en píxeles.

alpha
BitmapAlphaMode

Modo alfa del mapa de bits de software.

Devoluciones

Nuevo mapa de bits de software.

Atributos

Consulte también

Se aplica a

CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32)

Crea un nuevo Objeto SoftwareBitmap realizando una copia en profundidad del búfer proporcionado. Las modificaciones en los datos del nuevo SoftwareBitmap no afectarán al búfer desde el que se creó.

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

Búfer de origen desde el que se creará la copia.

format
BitmapPixelFormat

Formato de píxel del mapa de bits de software.

width
Int32

int

Ancho del mapa de bits de software, en píxeles.

height
Int32

int

Alto del mapa de bits de software, en píxeles.

Devoluciones

Nuevo mapa de bits de software.

Atributos

Comentarios

Use este método y sus sobrecargas para copiar datos de PixelBuffer de writeableBitmap en un objeto SoftwareBitmap existente.

Consulte también

Se aplica a