MLImage 類別

定義

提供映射處理作業的介面。

public sealed class MLImage : IDisposable
type MLImage = class
    interface IDisposable
Public NotInheritable Class MLImage
Implements IDisposable
繼承
MLImage
實作

屬性

BitsPerPixel

取得目前影像物件所使用的每個圖元位數。

GetBGRPixels

提供映射處理作業的介面。

Height

取得以圖元為單位的影像高度。

PixelFormat

取得這個影像的像素格式。

Pixels

取得影像圖元資料。

Tag

取得或設定影像標記。

Width

取得以圖元為單位的影像寬度。

方法

CreateFromFile(String)

從資料流程建立新的 MLImage 實例。

CreateFromPixels(Int32, Int32, MLPixelFormat, ReadOnlySpan<Byte>)

從圖元資料範圍建立 MLImage 物件。

CreateFromStream(Stream)

從資料流程建立新的 MLImage 實例。

Dispose()

處置映射。

Save(String)

將目前的映射儲存至檔案。

適用於