Click or drag to resize

IconGenerator Class

Generates identicons and render them to a Renderer. This class dictates what shapes will be used in the generated icons. If you intend to customize the appearance of generated icons you probably wants to either subclass or modify this class.
Inheritance Hierarchy
SystemObject
  Jdenticon.RenderingIconGenerator

Namespace:  Jdenticon.Rendering
Assembly:  Jdenticon.dll
Syntax
public class IconGenerator

The IconGenerator type exposes the following members.

Constructors
  NameDescription
Public methodIconGenerator
Initializes a new instance of the IconGenerator class
Top
Properties
  NameDescription
Public propertyCellCount
Gets the number of cells in each direction of the icons generated by this IconGenerator.
Top
Methods
  NameDescription
Public methodGenerate
Generates an identicon for the specified hash.
Protected methodGetCategories
Gets an enumeration of the shape categories to be rendered in icons generated by this IconGenerator.
Protected methodStatic memberGetHue
Determines the hue to be used in an icon for the specified hash.
Protected methodStatic memberGetOctet
Gets the specified octet from a byte array.
Protected methodGetShapes
Gets an enumeration of individual shapes to be rendered in an icon for a specific hash.
Protected methodNormalizeRectangle
Creates a quadratic copy of the specified Rectangle with a multiple of the cell count as size.
Protected methodRenderBackground
Renders the background of an icon.
Protected methodRenderForeground
Renders the foreground of an icon.
Top
See Also