VintaSoft Imaging .NET SDK 14.0: Documentation for Web developer
Vintasoft.Imaging.Annotation.UI Namespace / WebAnnotationPenJS type / WebAnnotationPenJS Constructor(number,string,WebLineJoinEnumJS,number,WebOutlineDashStyleEnumJS,number[],WebLineCapJS,WebLineCapJS)
Syntax BrowserCompatibility SeeAlso
WebAnnotationPenJS Constructor(number,string,WebLineJoinEnumJS,number,WebOutlineDashStyleEnumJS,number[],WebLineCapJS,WebLineCapJS)
Initializes a new instance of the WebAnnotationPenJS class.
Syntax
// Parameters
var width; // Type: number
var color; // Type: string
var lineJoin; // Type: WebLineJoinEnumJS
var miterLimit; // Type: number
var dashStyle; // Type: WebOutlineDashStyleEnumJS
var dashPattern; // Type: number[]
var startCap; // Type: WebLineCapJS
var endCap; // Type: WebLineCapJS

var instance = new Vintasoft.Imaging.Annotation.UI.WebAnnotationPenJS(width, color, lineJoin, miterLimit, dashStyle, dashPattern, startCap, endCap);

Parameters

width
Pen width.
color
Pen color, for example, "Red" or "rgba(125,125,125,0.8)".
lineJoin
An instance of WebLineJoinEnumJS class that defines the join style for the ends of two consecutive lines drawn with the pen.
miterLimit
The number that specifies maximum miter length.
dashStyle
An instance of WebOutlineDashStyleEnumJS class that defines the style used for dashed lines drawn with the pen.
dashPattern
Dash pattern. Array of numbers.
startCap
The cap style used at the beginning of lines drawn with the pen.
endCap
The cap style used at the end of lines drawn with the pen.
Browser Compatibility
56+
45+
11
See Also