SignatureImage Constructor
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Initializes a new instance of the SignatureImage class.
Syntax
SignatureImage(string, int)
Initializes a new image from the specified image file and filter.
public SignatureImage(string fileName, int filterIndex);Public Sub New(fileName As String, filterIndex As Integer)| Parameter | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| fileName | Specifies the name and the path of the file from which the image is loaded. | ||||||||||||||||||
| filterIndex | Specifies the index of the filter used to load the image. It is an index in the string returned through the ImageCollection.ImportFilters property starting with 1. Possible values are:
|
SignatureImage(System.Drawing.Image)
Initializes a new image from the specified System.Drawing.Image.
public SignatureImage(System.Drawing.Image image);Public Sub New(image As System.Drawing.Image)| Parameter | Description |
|---|---|
| image | Specifies a System.Drawing.Image object which is used to initialize the signature image. |
SignatureImage(MemoryStream)
Initializes a new image from the specified memory stream.
public SignatureImage(MemoryStream stream);Public Sub New(stream As MemoryStream)| Parameter | Description |
|---|---|
| stream | Specifies a memory stream from which the data for the signature image is read. |
Examples
The following example adds a visible handwritten-signature image to an approval field.
SignatureImage signatureImage = new(@"Images\alex-smith-signature.svg", 0);
SignatureField approval = new(new System.Drawing.Size(3000, 1000), "ApproverSignature", 10) { Image = signatureImage };
textControl.SignatureFields.Add(approval, FrameInsertionMode.AsCharacter);Dim signatureImage As New SignatureImage("Images\alex-smith-signature.svg", 0)
Dim approval As New SignatureField(New System.Drawing.Size(3000, 1000), "ApproverSignature", 10) With { .Image = signatureImage }
textControl.SignatureFields.Add(approval, FrameInsertionMode.AsCharacter)