Click or drag to resize

IdenticonFromHash Method (String, Int32)

Creates an Identicon instance from a hexadecimal hash string.

Namespace:  Jdenticon
Assembly:  Jdenticon.dll
Syntax
public static Identicon FromHash(
	string hash,
	int size
)

Parameters

hash
Type: SystemString
The hex encoded hash that will be used as base for the icon. The hash string must contain at least 12 characters.
size
Type: SystemInt32
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