Class Ink
Class representing ink annotations. Ink annotations are used for free hand drawings on a page.
Implements
Inherited Members
Namespace: PSPDFKit.Sdk.Models.Annotation
Assembly: Sdk.dll
Syntax
public sealed class Ink : AnnotationBase, IAnnotation
Properties
| Edit this page View SourceBackgroundColor
Optional background color that will fill the complete bounding box.
Declaration
[JsonProperty(NamingStrategyType = typeof(CamelCaseNamingStrategy), NullValueHandling = NullValueHandling.Ignore)]
[JsonConverter(typeof(ColorJsonConverter))]
public Color? BackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
Color? |
IsDrawnNaturally
Declaration
[JsonProperty(NamingStrategyType = typeof(CamelCaseNamingStrategy))]
public bool IsDrawnNaturally { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsSignature
Indicates whether the ink annotation is a signature.
Declaration
[JsonProperty(NamingStrategyType = typeof(CamelCaseNamingStrategy))]
public bool IsSignature { get; set; }
Property Value
Type | Description |
---|---|
bool |
LineWidth
The width of the lines in page size pixels. By default, we use values between 1 and 40 in the UI. The line width will scale when you zoom in.
Declaration
[JsonProperty(NamingStrategyType = typeof(CamelCaseNamingStrategy))]
public int LineWidth { get; set; }
Property Value
Type | Description |
---|---|
int |
Lines
A list of line segments. Every segment consists again of a pair of points. Within one segment, points will be connected using lines or curves. If no lines are present, the annotation will not be visible.
Declaration
[JsonProperty(NamingStrategyType = typeof(CamelCaseNamingStrategy), NullValueHandling = NullValueHandling.Ignore)]
[JsonConverter(typeof(LinesJsonConverter))]
public IEnumerable<IEnumerable<DrawingPoint>> Lines { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<IEnumerable<DrawingPoint>> |
StrokeColor
Color for visible line.
Declaration
[JsonProperty(NamingStrategyType = typeof(CamelCaseNamingStrategy))]
[JsonConverter(typeof(ColorJsonConverter))]
public Color StrokeColor { get; set; }
Property Value
Type | Description |
---|---|
Color |