Table of Contents

Class SignatureCapture

Namespace
NuvTools.AspNetCore.Blazor.Components
Assembly
NuvTools.AspNetCore.Blazor.dll

A signature drawn on a NuvSignaturePad, as a PNG.

public sealed class SignatureCapture
Inheritance
SignatureCapture
Inherited Members

Properties

Base64

The image content in Base64, already without the data:...;base64, prefix.

public string Base64 { get; }

Property Value

string

Bytes

The decoded image content.

public byte[] Bytes { get; }

Property Value

byte[]

ContentType

The MIME type of the image, read from DataUrl.

public string ContentType { get; }

Property Value

string

DataUrl

The full data URL, as produced by the canvas (data:image/png;base64,...).

public required string DataUrl { get; init; }

Property Value

string

Height

The image height, in pixels.

public int Height { get; init; }

Property Value

int

Strokes

How many strokes the signature has; a tap or a dot counts as one.

public int Strokes { get; init; }

Property Value

int

Width

The image width, in pixels (the drawing buffer, already scaled to the device pixel ratio).

public int Width { get; init; }

Property Value

int