IdenticonFromHash Method (Byte, Int32)

Creates an Identicon instance from a specified hash.
public static Identicon FromHash(
	byte[] hash,
	int size
)

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

Return Value

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.

See Also

Reference