BitmapBuffer BitmapBuffer BitmapBuffer BitmapBuffer BitmapBuffer Class


Represents the pixel data buffer of a bitmap.

public : sealed class BitmapBuffer : IClosable, IMemoryBuffer
struct winrt::Windows::Graphics::Imaging::BitmapBuffer : IClosable, IMemoryBuffer
public sealed class BitmapBuffer : IDisposable, IMemoryBuffer
Public NotInheritable Class BitmapBuffer Implements IDisposable, IMemoryBuffer
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Get an instance of this class by calling SoftwareBitmap.LockBuffer.


Close() Close() Close() Close() Close()

Disposes of the object and associated resources.

CreateReference() CreateReference() CreateReference() CreateReference() CreateReference()

Creates a reference to the underlying memory buffer.

Dispose() Dispose() Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetPlaneCount() GetPlaneCount() GetPlaneCount() GetPlaneCount() GetPlaneCount()

Gets the number of bit planes in the bitmap buffer.

GetPlaneDescription(Int32) GetPlaneDescription(Int32) GetPlaneDescription(Int32) GetPlaneDescription(Int32) GetPlaneDescription(Int32)

Gets a BitmapPlaneDescription object that describes the size, offset, and stride of the bitmap data in the bit plane with the specified index.

See also