AmgadWriteSignature 3.0.2
See the version list below for details.
dotnet add package AmgadWriteSignature --version 3.0.2
NuGet\Install-Package AmgadWriteSignature -Version 3.0.2
<PackageReference Include="AmgadWriteSignature" Version="3.0.2" />
<PackageVersion Include="AmgadWriteSignature" Version="3.0.2" />
<PackageReference Include="AmgadWriteSignature" />
paket add AmgadWriteSignature --version 3.0.2
#r "nuget: AmgadWriteSignature, 3.0.2"
#:package AmgadWriteSignature@3.0.2
#addin nuget:?package=AmgadWriteSignature&version=3.0.2
#tool nuget:?package=AmgadWriteSignature&version=3.0.2
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.
- Email: goodamogo@gmail.com
- LinkedIn: www.linkedin.com/in/amgad-edward-61a71021b
- Location: Cairo, Egypt
- Phone / WhatsApp: +20 1222493699
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 | Versions 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. |
-
net9.0
- Microsoft.AspNetCore.Components.Web (>= 9.0.19)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.