Table of Contents

Class InkRenderer

Namespace
MiPdf.Signatures
Assembly
MiPdf.dll

Draws handwritten signatures (ink strokes, e.g. from a signature pad) as vector graphics with pressure-dependent line width. Use it in Draw or on any canvas.

public static class InkRenderer
Inheritance
InkRenderer
Inherited Members

Methods

Draw(PdfCanvas, IEnumerable<IReadOnlyList<InkPoint>>, PdfColor?, double, double, double?)

public static void Draw(PdfCanvas canvas, IEnumerable<IReadOnlyList<InkPoint>> strokes, PdfColor? color = null, double minWidth = 0.35, double maxWidth = 2.4, double? topLeftHeight = null)

Parameters

canvas PdfCanvas

Target canvas.

strokes IEnumerable<IReadOnlyList<InkPoint>>

Strokes; each stroke is a sequence of points.

color PdfColor?

Ink color (default dark blue).

minWidth double

Line width at pressure 0 (points).

maxWidth double

Line width at pressure 1 (points).

topLeftHeight double?

If set, the coordinates have a top-left origin (y pointing down, as on screens) within an area of this height; they are flipped into PDF coordinates.