IdenticonResultFromHash Method (Byte, Int32, ExportImageFormat)

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

Parameters

hashSystemByte
The hash that will be used as base for this icon. The hash must contain at least 6 bytes.
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