-api-id | -api-type |
---|---|
M:Windows.Graphics.Imaging.SoftwareBitmap.CreateCopyFromBuffer(Windows.Storage.Streams.IBuffer,Windows.Graphics.Imaging.BitmapPixelFormat,System.Int32,System.Int32) |
winrt method |
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.
The source buffer from which the copy will be created.
The pixel format of the software bitmap.
The width of the software bitmap, in pixels.
The height of the software bitmap, in pixels.
The new software bitmap.
Use this method and its overloads to copy data from the PixelBuffer of a WriteableBitmap into an existing SoftwareBitmap.
CreateCopyFromBuffer(IBuffer, BitmapPixelFormat, Int32, Int32, BitmapAlphaMode)