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
canvasPdfCanvasTarget canvas.
strokesIEnumerable<IReadOnlyList<InkPoint>>Strokes; each stroke is a sequence of points.
colorPdfColor?Ink color (default dark blue).
minWidthdoubleLine width at pressure 0 (points).
maxWidthdoubleLine width at pressure 1 (points).
topLeftHeightdouble?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.