位圖轉字串
using IronSoftware.Drawing;

AnyBitmap bitmap = AnyBitmap.FromFile(@"FILE_PATH");

// Convert AnyBitmap to a string that represents the object
string bitmapString = bitmap.ToString();

NuGet 下載
PM > Install-Package IronSoftware.System.Drawing
位圖轉字串

位圖轉字串

IronDrawing 也有將 AnyBitmap 檔案轉換為代表當前 AnyBitmap 檔案的獨特字元串的功能,這是根據 AnyBitmap 檔案的特徵來的。 任何對特定 AnyBitmap 檔案的小改變都會改變該檔案的字串,相似的 AnyBitmap 檔案將有相似的字串。 因此,這是一種通過比較兩個AnyBitmap檔案的字串來檢查相似性的方法。

要使用此功能,只需從檔案路徑載入一個 AnyBitmap 檔案並將其賦值給一個 string 變數,以儲存使用 .ToString() 方法載入的 AnyBitmap 檔案的字串。

在 GitHub 查看

準備好開始了嗎?

NuGet 下載次數 22,062,064版本:2026.11剛剛發布