BitmapBuffer
BitmapBuffer
BitmapBuffer
BitmapBuffer
Class
Definition
Represents the pixel data buffer of a bitmap.
public : sealed class BitmapBuffer : IClosable, IMemoryBuffer, IBitmapBufferpublic sealed class BitmapBuffer : IDisposable, IMemoryBuffer, IBitmapBufferPublic NotInheritable Class BitmapBuffer Implements IDisposable, IMemoryBuffer, IBitmapBuffer// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
Get an instance of this class by calling SoftwareBitmap::LockBuffer.
Methods
Close() Close() Close() Close()
Disposes of the object and associated resources.
public : void Close()This member is not implemented in C#This member is not implemented in VB.Net// You can use this method in JavaScript.
CreateReference() CreateReference() CreateReference() CreateReference()
Creates a reference to the underlying memory buffer.
public : IMemoryBufferReference CreateReference()public IMemoryBufferReference CreateReference()Public Function CreateReference() As IMemoryBufferReference// You can use this method in JavaScript.
Returns
A reference to the underlying memory buffer.
Dispose() Dispose() Dispose() Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
This member is not implemented in C++void Dispose()Sub Disposevoid Dispose()
GetPlaneCount() GetPlaneCount() GetPlaneCount() GetPlaneCount()
Gets the number of bit planes in the bitmap buffer.
public : int GetPlaneCount()public int GetPlaneCount()Public Function GetPlaneCount() As int// You can use this method in JavaScript.
Returns
int
int
int
int
The number of bit planes in the bitmap buffer.
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.
public : BitmapPlaneDescription GetPlaneDescription(int index)public BitmapPlaneDescription GetPlaneDescription(Int32 index)Public Function GetPlaneDescription(index As Int32) As BitmapPlaneDescription// You can use this method in JavaScript.
Parameters
- index
- int Int32 Int32 Int32
The index of the bit plane for which the description is retrieved.
Returns
The bit plane description.