SoftwareBitmap.CreateCopyFromBuffer Method

Definition

Overloads

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

Creates a new SoftwareBitmap by performing a deep copy of the provided buffer. Modifications to the data in the new SoftwareBitmap will not effect the buffer from which it was created.

CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32)

Creates a new SoftwareBitmap by performing a deep copy of the provided buffer. Modifications to the data in the new SoftwareBitmap will not effect the buffer from which it was created.

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

Creates a new SoftwareBitmap by performing a deep copy of the provided buffer. Modifications to the data in the new SoftwareBitmap will not effect the buffer from which it was created.

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

Parameters

source
IBuffer

The source buffer from which the copy will be created.

format
BitmapPixelFormat

The pixel format of the software bitmap.

width
Int32

int

The width of the software bitmap, in pixels.

height
Int32

int

The height of the software bitmap, in pixels.

alpha
BitmapAlphaMode

The alpha mode of the software bitmap.

Returns

The new software bitmap.

Attributes

See also

Applies to

CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32)

Creates a new SoftwareBitmap by performing a deep copy of the provided buffer. Modifications to the data in the new SoftwareBitmap will not effect the buffer from which it was created.

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

Parameters

source
IBuffer

The source buffer from which the copy will be created.

format
BitmapPixelFormat

The pixel format of the software bitmap.

width
Int32

int

The width of the software bitmap, in pixels.

height
Int32

int

The height of the software bitmap, in pixels.

Returns

The new software bitmap.

Attributes

Remarks

Use this method and its overloads to copy data from the PixelBuffer of a WriteableBitmap into an existing SoftwareBitmap.

See also

Applies to