SoftwareBitmap.CreateCopyFromBuffer SoftwareBitmap.CreateCopyFromBuffer SoftwareBitmap.CreateCopyFromBuffer SoftwareBitmap.CreateCopyFromBuffer SoftwareBitmap.CreateCopyFromBuffer Method

Definition

Overloads

CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32) CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32) CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32) CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32) 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) CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32, BitmapAlphaMode) CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32, BitmapAlphaMode) CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32, BitmapAlphaMode) 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) CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32) CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32) CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32) 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)
static SoftwareBitmap CreateCopyFromBuffer(IBuffer source, BitmapPixelFormat format, int32_t width, int32_t height) const;
public static SoftwareBitmap CreateCopyFromBuffer(IBuffer source, BitmapPixelFormat format, Int32 width, Int32 height)
Public Shared Function CreateCopyFromBuffer(source As IBuffer, format As BitmapPixelFormat, width As Int32, height As Int32) As SoftwareBitmap
var softwareBitmap = Windows.Graphics.Imaging.SoftwareBitmap.createCopyFromBuffer(source, format, width, height);

Parameters

source
IBuffer IBuffer IBuffer

The source buffer from which the copy will be created.

format
BitmapPixelFormat BitmapPixelFormat BitmapPixelFormat

The pixel format of the software bitmap.

width
Int32 Int32 Int32

The width of the software bitmap, in pixels.

height
Int32 Int32 Int32

The height of the software bitmap, in pixels.

Returns

Remarks

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

See also

CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32, BitmapAlphaMode) CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32, BitmapAlphaMode) CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32, BitmapAlphaMode) CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32, BitmapAlphaMode) 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)
static SoftwareBitmap CreateCopyFromBuffer(IBuffer source, BitmapPixelFormat format, int32_t width, int32_t height, BitmapAlphaMode alpha) const;
public static SoftwareBitmap CreateCopyFromBuffer(IBuffer source, BitmapPixelFormat format, Int32 width, Int32 height, BitmapAlphaMode alpha)
Public Shared Function CreateCopyFromBuffer(source As IBuffer, format As BitmapPixelFormat, width As Int32, height As Int32, alpha As BitmapAlphaMode) As SoftwareBitmap
var softwareBitmap = Windows.Graphics.Imaging.SoftwareBitmap.createCopyFromBuffer(source, format, width, height, alpha);

Parameters

source
IBuffer IBuffer IBuffer

The source buffer from which the copy will be created.

format
BitmapPixelFormat BitmapPixelFormat BitmapPixelFormat

The pixel format of the software bitmap.

width
Int32 Int32 Int32

The width of the software bitmap, in pixels.

height
Int32 Int32 Int32

The height of the software bitmap, in pixels.

alpha
BitmapAlphaMode BitmapAlphaMode BitmapAlphaMode

The alpha mode of the software bitmap.

Returns

See also