SoftwareBitmap.CreateCopyFromBuffer Methode

Definition

Überlädt

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

Erstellt eine neue SoftwareBitmap durch Ausführen einer tiefen Kopie des bereitgestellten Puffers. Änderungen an den Daten in der neuen SoftwareBitmap wirken sich nicht auf den Puffer aus, aus dem sie erstellt wurden.

CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32)

Erstellt eine neue SoftwareBitmap durch Ausführen einer tiefen Kopie des bereitgestellten Puffers. Änderungen an den Daten in der neuen SoftwareBitmap wirken sich nicht auf den Puffer aus, aus dem sie erstellt wurden.

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

Erstellt eine neue SoftwareBitmap durch Ausführen einer tiefen Kopie des bereitgestellten Puffers. Änderungen an den Daten in der neuen SoftwareBitmap wirken sich nicht auf den Puffer aus, aus dem sie erstellt wurden.

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

Parameter

source
IBuffer

Der Quellpuffer, aus dem die Kopie erstellt wird.

format
BitmapPixelFormat

Das Pixelformat der Softwarebitbitbit.

width
Int32

int

Die Breite der Softwarebitbitbit in Pixeln.

height
Int32

int

Die Höhe der Softwarebit in Pixel.

alpha
BitmapAlphaMode

Der Alphamodus der Softwarebitbitbit.

Gibt zurück

Die neue Softwarebitbitbit.

Attribute

Weitere Informationen

Gilt für:

CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32)

Erstellt eine neue SoftwareBitmap durch Ausführen einer tiefen Kopie des bereitgestellten Puffers. Änderungen an den Daten in der neuen SoftwareBitmap wirken sich nicht auf den Puffer aus, aus dem sie erstellt wurden.

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

Parameter

source
IBuffer

Der Quellpuffer, aus dem die Kopie erstellt wird.

format
BitmapPixelFormat

Das Pixelformat der Softwarebitbitbit.

width
Int32

int

Die Breite der Softwarebitbitbit in Pixeln.

height
Int32

int

Die Höhe der Softwarebit in Pixel.

Gibt zurück

Die neue Softwarebitbitbit.

Attribute

Hinweise

Verwenden Sie diese Methode und ihre Überladungen, um Daten aus dem PixelBuffer einer WriteableBitmap in eine vorhandene SoftwareBitmap zu kopieren.

Weitere Informationen

Gilt für: