IdenticonResultFromHash Method (String, Int32, ExportImageFormat)

Creates an IdenticonResult instance with the specified hash.
public static IdenticonResult FromHash(
	string hash,
	int size,
	ExportImageFormat format = ExportImageFormat.Png
)

Parameters

hashSystemString
The hex encoded hash that will be used as base for the icon. The hash string must contain at least 12 characters.
sizeSystemInt32
The size of the icon in pixels.
formatJdenticonExportImageFormat (Optional)
The format of the generated icon.

Return Value

IdenticonResult

Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionsize was less than 1.
ArgumentExceptionhash was too short.
ArgumentNullExceptionhash was null.

See Also

Reference