Click or drag to resize

SignatureToImage Class

A supplemental class for Signature Pad (https://github.com/thomasjbradley/signature-pad) that generates an image of the signature's JSON output server-side using C#. Alternately, you can provide a name and generate an image that resembles a signature from a font. Similar to Signature to Image PHP (https://github.com/thomasjbradley/signature-to-image)
Inheritance Hierarchy
SystemObject
  NetQuarrySignatureToImage

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public class SignatureToImage

The SignatureToImage type exposes the following members.

Constructors
  NameDescription
Public methodSignatureToImage
Gets a new signature generator with the default options.
Top
Properties
  NameDescription
Public propertyBackgroundColor
The background color to use in the signature canvas element. Default is Color.White.
Public propertyCanvasHeight
The height of the canvas, in pixels. Default is 45.
Public propertyCanvasWidth
The width of the canvas, in pixels. Default is 198.
Public propertyFontName
The signature font name. Default is Journal.
Public propertyFontSize
The signature font size, in ems. Default is 24.
Public propertyPenColor
The pen color to use for the signature. Default is Color.FromArgb(20, 83, 148)
Public propertyPenWidth
The width/height of the pen, in pixels. Default is 2.
Top
Methods
  NameDescription
Public methodConvert
Convert a signature stream from a SignaturePad control into an image file stream.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSigNameToImage
Draws an approximation of a signature using a font.
Public methodSigStringToImage
Converts a signature stream (from a SignaturePad control) to a bitmap.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodEqualValue
Determines if the object value is equal to another object. If the two objects are null, then this returns true. There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways). If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.)
Top
See Also