AmgadWriteSignature 3.0.3

dotnet add package AmgadWriteSignature --version 3.0.3
                    
NuGet\Install-Package AmgadWriteSignature -Version 3.0.3
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AmgadWriteSignature" Version="3.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AmgadWriteSignature" Version="3.0.3" />
                    
Directory.Packages.props
<PackageReference Include="AmgadWriteSignature" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AmgadWriteSignature --version 3.0.3
                    
#r "nuget: AmgadWriteSignature, 3.0.3"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AmgadWriteSignature@3.0.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AmgadWriteSignature&version=3.0.3
                    
Install as a Cake Addin
#tool nuget:?package=AmgadWriteSignature&version=3.0.3
                    
Install as a Cake Tool

AmgadWriteSignature

A reusable electronic signature component for Blazor, designed and developed by Amgad Edward.

Design & Development: Amgad Edward
© 2026 Amgad Edward. All rights reserved.

AmgadWriteSignature provides a canvas-based signature pad for Blazor applications. Users can sign with a mouse, touchscreen, or compatible stylus and choose their pen color before signing.

Features

  • Signature capture using mouse, touch, or stylus
  • Pen color selection before drawing
  • Clear and sign again
  • PNG signature output as Base64 or byte[]
  • JavaScript interop through a Blazor component
  • Supports multiple signature components on one page
  • Capture and store pen stroke data as JSON for future signature comparison
  • Compare new signatures with previously saved signatures
  • Image similarity comparison based on signature shape
  • Stroke similarity comparison based on pen movement and drawing paths
  • Overall signature similarity score combining image and stroke analysis
  • Supports comparison with older signatures that have no stroke data
  • Enable or disable automatic signature comparison
  • Optional signature canvas height adjustment control
  • Supports Arabic and English with RTL and LTR layouts
  • Event callbacks for signature image and stroke data changes

Installation

Install the package from NuGet:

dotnet add package AmgadWriteSignature

Import the component namespace in your _Imports.razor file:

@using AmgadWriteSignature

Usage

Bind the signature as bytes:

<WriteSignature @bind-Value="Signature" />

@code {
    private byte[]? Signature;
}

Or bind the Base64 data URL:

<WriteSignature @bind-ValueBase64="SignatureBase64" />

@code {
    private string? SignatureBase64;
}

Component parameters

Parameter Type Description
Value byte[]? Signature image as PNG bytes
ValueChanged EventCallback<byte[]?> Fires when the signature changes
ValueBase64 string? Signature image as a Base64 data URL
ValueBase64Changed EventCallback<string?> Fires when the Base64 signature changes

| ShowControlHight | bool | Shows or hides the signature canvas height adjustment control. Defaults to false. |

| StrokeData | string? | Gets or sets the signature's pen stroke data as a JSON string for storage and future comparison. | | StrokeDataChanged | EventCallback<string?> | Fires when the signature's pen stroke data changes. |

| OriginalSignature | byte[]? | Gets or sets the original signature image used for comparison with the newly drawn signature. | | OriginalStrokeData | string? | Gets or sets the original signature's pen stroke data used for stroke comparison. |

| EnableComparisonSingantuer | bool | Enables or disables automatic signature comparison. Defaults to false. | | OnAfterSignature | EventCallback | Fires after the signature has been updated and processed. |

Note: These bindings receive signatures drawn in the component. Displaying a signature passed in from the parent requires implementing loading of the initial value into the canvas. The component requires an interactive Blazor render mode for JavaScript interop.

👨‍💻 About the Developer

Amgad Edward
Senior .NET Developer | Software Engineer | Team Lead

Experienced in building enterprise applications, ERP systems, and reusable .NET and Blazor components.

📬 Contact & Collaboration

Open to freelance projects, remote opportunities, technical consulting, and business collaborations.

For professional inquiries, custom development, or commercial licensing, feel free to get in touch.

How it works

The component draws directly on an HTML canvas. When the user finishes a stroke, JavaScript exports the canvas to a PNG data URL and sends it to Blazor via DotNetObjectReference. The Blazor component exposes the result through its value change callbacks.

Authorship

AmgadWriteSignature is an original component designed and developed by Amgad Edward.

  • Created by: Amgad Edward
  • UI/UX design: Amgad Edward
  • Software development: Amgad Edward

© 2026 Amgad Edward. All rights reserved.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.3 114 11/7/2026
3.0.2 100 11/6/2026
2.0.0 111 11/3/2026
1.0.0 120 10/31/2026