Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.46 KB

softwarebitmap_createcopyfrombuffer_1229594131.md

File metadata and controls

39 lines (26 loc) · 1.46 KB
-api-id -api-type
M:Windows.Graphics.Imaging.SoftwareBitmap.CreateCopyFromBuffer(Windows.Storage.Streams.IBuffer,Windows.Graphics.Imaging.BitmapPixelFormat,System.Int32,System.Int32)
winrt method

Windows.Graphics.Imaging.SoftwareBitmap.CreateCopyFromBuffer

-description

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.

-parameters

-param source

The source buffer from which the copy will be created.

-param format

The pixel format of the software bitmap.

-param width

The width of the software bitmap, in pixels.

-param height

The height of the software bitmap, in pixels.

-returns

The new software bitmap.

-remarks

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

-examples

-see-also

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