Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 2.32 KB

softwarebitmap.md

File metadata and controls

31 lines (21 loc) · 2.32 KB
-api-id -api-type
T:Windows.Graphics.Imaging.SoftwareBitmap
winrt class

Windows.Graphics.Imaging.SoftwareBitmap

-description

Represents an uncompressed bitmap.

-examples

Sample applications that use this class include the Camera frames sample.

For a code example showing how to access pixel data, see the WriteableBitmap.PixelBuffer property (also see CopyToBuffer, and CopyFromBuffer).

-remarks

This class provides a representation of a bitmap that makes it easy to use with different imaging APIs. Use GetSoftwareBitmapAsync to create a SoftwareBitmap from a stream resource such as an image file.

Use CopyToBuffer and CopyFromBuffer to copy pixel data back and forth between a SoftwareBitmap and the PixelBuffer of a WriteableBitmap. Use CreateCopyFromSurfaceAsync to create a SoftwareBitmap from an IDirect3DSurface. Use ISoftwareBitmapNativeFactory::CreateFromMF2DBuffer2 to create a SoftwareBitmap from an IMF2DBuffer2. Use ISoftwareBitmapNativeFactory::CreateFromIWICBitmap to create a SoftwareBitmap from an IWICBitmap.

-see-also

IClosable, Camera frames sample