Bitmap to String
using IronSoftware.Drawing;

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

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

NuGet Download
PM > Install-Package IronSoftware.System.Drawing
Bitmap to String

Bitmap to String

IronDrawing also has a feature to convert AnyBitmap files to a unique string of characters that represent the current AnyBitmap files based on the characteristics of the AnyBitmap files. Any small change to a particular AnyBitmap file will change the string of the file and similar AnyBitmap files will have similar strings. Therefore, it is useful as one way to check the similarity by comparing strings of two AnyBitmap files.

To use this feature, simply load an AnyBitmap file from a file path and assign it to a string variable to store the string of the AnyBitmap file loaded using the method .ToString().

View on GitHub

Ready to Get Started?

Nuget Downloads 21,099,947Version:2026.11just released