Delen via


BitmapBuffer Class

Definition

Represents the pixel data buffer of a bitmap.

public ref class BitmapBuffer sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.GCPressure]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class BitmapBuffer final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.GCPressure]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class BitmapBuffer : System.IDisposable
Public NotInheritable Class BitmapBuffer
Implements IDisposable
Inheritance
Object Platform::Object IInspectable BitmapBuffer
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

Get an instance of this class by calling SoftwareBitmap.LockBuffer. Because the BitmapBuffer represents an exclusive lock on the associated bitmap, apps should not keep the reference to it indefinitely.

Methods

Close()

Disposes of the object and associated resources.

CreateReference()

Creates a reference to the underlying memory buffer.

Dispose()

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

GetPlaneCount()

Gets the number of bit planes in the bitmap buffer.

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.

Applies to

See also