BitmapBuffer 類別

定義

表示點陣圖的圖元資料緩衝區。

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
繼承
Object Platform::Object IInspectable BitmapBuffer
屬性
實作

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

呼叫 SoftwareBitmap.LockBuffer以取得此類別的實例。 因為 BitmapBuffer 代表相關聯點陣圖的獨佔鎖定,所以應用程式不應該無限期地保留對它的參考。

方法

Close()

處置物件和相關聯的資源。

CreateReference()

建立基礎記憶體緩衝區的參考。

Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

GetPlaneCount()

取得點陣圖緩衝區中的位平面數目。

GetPlaneDescription(Int32)

會取得 BitmapPlaneDescription 物件,描述位平面中具有指定索引之點陣圖資料的大小、位移和步距。

適用於

另請參閱