位图到字符串
IronDrawing还具有将AnyBitmap文件。 对特定AnyBitmap文件将具有相似的字符串。 因此,它作为通过比较两个AnyBitmap文件的字符串来检查相似性的一种方法是有用的。
要使用此功能,只需从文件路径加载一个AnyBitmap文件的字符串。
准备开始了吗?
Nuget 下载 18,156,807 | 版本: 2025.3 刚刚发布
using IronSoftware.Drawing; AnyBitmap bitmap = AnyBitmap.FromFile(@"FILE_PATH"); // Convert AnyBitmap to a string that represents the object string bitmapString = bitmap.ToString();
Imports IronSoftware.Drawing
Private bitmap As AnyBitmap = AnyBitmap.FromFile("FILE_PATH")
' Convert AnyBitmap to a string that represents the object
Private bitmapString As String = bitmap.ToString()
Install-Package IronSoftware.System.Drawing
IronDrawing还具有将AnyBitmap文件。 对特定AnyBitmap文件将具有相似的字符串。 因此,它作为通过比较两个AnyBitmap文件的字符串来检查相似性的一种方法是有用的。
要使用此功能,只需从文件路径加载一个AnyBitmap文件的字符串。