語言

MLImage 類別

定義

提供影像操作介面。

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

屬性

名稱 Description
BitsPerPixel

讀取當前影像物件每個像素使用的位元數。

GetBGRPixels

提供影像操作介面。

Height

它會取得以像素為單位的影像高度。

PixelFormat

取得這張圖片的像素格式。

Pixels

取得影像像素資料。

Tag

取得或設定圖片標籤。

Width

它會得到以像素為單位的影像寬度。

方法

名稱 Description
CreateFromFile(String)

從串流建立一個新的 MLImage 實例。

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

從像素資料範圍建立 MLImage 物件。

CreateFromStream(Stream)

從串流建立一個新的 MLImage 實例。

Dispose()

丟棄影像。

Save(String)

將目前的圖片儲存到檔案中。

適用於