Renderer Class

Base class for rendering shapes in an identicon.
public abstract class Renderer


Implement this class to e.g. support a new file format that is not natively supported by Jdenticon. To invoke the new Renderer, pass the renderer as an argument to the Draw(Renderer, Rectangle) method.


Protected methodRenderer
Initializes a new instance of the Renderer class


Public methodAddCircle
Adds a circle to the image.
Protected methodAddCircleNoTransform
Adds a circle without translating of its border.
Public methodAddPolygon
Adds a polygon to the image.
Protected methodAddPolygonNoTransform
Adds a polygon without translating or changing direction of the points.
Public methodAddRectangle
Adds a rectangle to the image.
Public methodAddRhombus
Adds a rhombus to the image.
Public methodAddTriangle
Adds a triangle to the image.
Public methodBeginShape
Begins a new shape. The shape should always be ended by disposing the returned IDisposable.
Public methodFlush
Flushes all pending draw operations to the target.
Public methodSetBackground
Sets the background color of the image.

See Also