IdenticonFromHash Method (String, Int32)

Creates an Identicon instance from a hexadecimal hash string.
public static Identicon FromHash(
	string hash,
	int size
)
View source
Namespace
Jdenticon
Assembly
Jdenticon.dll

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 (the icon is quadratic).

Return Value

Type: Identicon
An Identicon instance for the specified hash.

Exceptions

ExceptionCondition
ArgumentExceptionhash does not contain 6 bytes.
ArgumentNullExceptionhash is null.
ArgumentOutOfRangeExceptionsize is less than 1 pixel.
FormatExceptionhash is not a hexadecimal string.

See Also

Reference