次の方法で共有


ImageBuffer クラス

定義

効率的なクロスプロセス マーシャリングに使用される非圧縮ビットマップを表します。

public ref class ImageBuffer sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Graphics.Imaging.ImageBufferContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class ImageBuffer final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Graphics.Imaging.ImageBufferContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class ImageBuffer : System.IDisposable
Public NotInheritable Class ImageBuffer
Implements IDisposable
継承
Object Platform::Object IInspectable ImageBuffer
属性
実装

注釈

このオブジェクトは、画像データを必要とする TextRecognizer などの AI モデル API と共に使用できます。 一般的な使用方法には、既存の SoftwareBitmap からを作成する必要があります。

プロパティ

名前 説明
Buffer

現在のイメージ バッファーを取得します。

PixelFormat

イメージのピクセル形式を取得します。

PixelHeight

効率的なクロスプロセス マーシャリングに使用される非圧縮ビットマップを表します。

PixelWidth

効率的なクロスプロセス マーシャリングに使用される非圧縮ビットマップを表します。

RowStride

効率的なクロスプロセス マーシャリングに使用される非圧縮ビットマップを表します。

メソッド

名前 説明
Close()

オブジェクトと関連付けられているリソースを破棄します。

CopyToByteArray(Byte[])

効率的なクロスプロセス マーシャリングに使用される非圧縮ビットマップを表します。

CopyToSoftwareBitmap()

効率的なクロスプロセス マーシャリングに使用される非圧縮ビットマップを表します。

CreateForBuffer(IBuffer, ImageBufferPixelFormat, Int32, Int32, Int32)

効率的なクロスプロセス マーシャリングに使用される非圧縮ビットマップを表します。

CreateForSoftwareBitmap(SoftwareBitmap)

効率的なクロスプロセス マーシャリングに使用される非圧縮ビットマップを表します。

Dispose()

アンマネージド リソースの解放、解放、またはリセットに関連付けられているアプリケーション定義のタスクを実行します。

適用対象