Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

SoftwareBitmap.CopyFromBuffer(IBuffer) Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Copies the pixel data from an IBuffer into the SoftwareBitmap.

public:
 virtual void CopyFromBuffer(IBuffer ^ buffer) = CopyFromBuffer;
void CopyFromBuffer(IBuffer const& buffer);
public void CopyFromBuffer(IBuffer buffer);
function copyFromBuffer(buffer)
Public Sub CopyFromBuffer (buffer As IBuffer)

Parameters

buffer
IBuffer

The buffer containing the pixel data to be copied.

Examples

For a code example showing how to access pixel data, see the WriteableBitmap.PixelBuffer property.

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. In other words, it expects that the stride of the image is equal to the width, with no additional padding.

Applies to

See also


Feedback

Was this page helpful?