Class InkAnnotation
An ink (freehand / pencil-mark) annotation (PDF spec §12.5.8). Represents one or more stroked paths drawn freehand by the user. Each ink path is a list of points; multiple paths are stored in the /InkList array.
Inherited Members
Namespace: DRIT.Pdf.Annotations
Assembly: DRIT.Pdf.dll
Syntax
public sealed class InkAnnotation : MarkupAnnotation
Properties
InkLists
The collection of ink paths. Each path is a list of points.
Declaration
public IReadOnlyList<IReadOnlyList<PdfPoint>> InkLists { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<IReadOnlyList<PdfPoint>> |
Methods
BeginPath(PdfPoint)
Begin a new ink path (subpath) starting at the specified point.
Declaration
public void BeginPath(PdfPoint point)
Parameters
| Type | Name | Description |
|---|---|---|
| PdfPoint | point |
BeginPath(double, double)
Begin a new ink path starting at the specified coordinates.
Declaration
public void BeginPath(double x, double y)
Parameters
| Type | Name | Description |
|---|---|---|
| double | x | |
| double | y |
LineTo(PdfPoint)
Add a line segment to the current (last) ink path.
Declaration
public void LineTo(PdfPoint point)
Parameters
| Type | Name | Description |
|---|---|---|
| PdfPoint | point |
LineTo(double, double)
Add a line segment to the current ink path at the specified coordinates.
Declaration
public void LineTo(double x, double y)
Parameters
| Type | Name | Description |
|---|---|---|
| double | x | |
| double | y |