SoftwareBitmap.CopyFromBuffer(IBuffer) SoftwareBitmap.CopyFromBuffer(IBuffer) SoftwareBitmap.CopyFromBuffer(IBuffer) SoftwareBitmap.CopyFromBuffer(IBuffer) SoftwareBitmap.CopyFromBuffer(IBuffer) Method

Definition

Copies the pixel data from an IBuffer into the SoftwareBitmap.

public : void CopyFromBuffer(IBuffer buffer)
void CopyFromBuffer(IBuffer buffer) const;
public void CopyFromBuffer(IBuffer buffer)
Public Sub CopyFromBuffer(buffer As IBuffer)
softwareBitmap.copyFromBuffer(buffer);

Parameters

buffer
IBuffer IBuffer IBuffer

The buffer containing the pixel data to be copied.

Remarks

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

This method assumes that the input buffer has the same pixel format, width, height, color space, alpha mode, and DPI. It also assumes that the data in the buffer is contiguous, meaning that no IBuffer implicitly has the same format/width/height/color-space/alpha-mode/dpi. In other words, it expects that the stride of the image is equal to the width, with no additional padding.