VintaSoft Imaging .NET SDK v8.5
WebAnnotationPenJS Constructor
Vintasoft.Imaging.Annotation.Svg Namespace > WebAnnotationPenJS type : WebAnnotationPenJS Constructor
Pen width.
Pen color, for example, 'Red' or 'rgba(125,125,125,0.8)'.
The join style for the ends of two consecutive lines drawn with the pen. WebLineJoinEnumJS object.
The number that specifies maximum miter length.
The style used for dashed lines drawn with the pen. WebOutlineDashStyleEnumJS object.
Dash pattern. Array of numbers.
The cap style used at the beginning of lines drawn with the pen.
The cap style used at the end of lines drawn with the pen.
Defines an object, which can be used for drawing of lines and curves of the annotation.
Syntax
// Parameters
var width; // Type:  number
var color; // Type:  string
var lineJoin; // Type:  object
var miterLimit; // Type:  number
var dashStyle; // Type:  object
var dashPattern; // Type:  object
var startCap; // Type:  object
var endCap; // Type:  object

var instance = new Vintasoft.Imaging.Annotation.Svg.WebAnnotationPenJS(width,
                                                                       color,
                                                                       lineJoin,
                                                                       miterLimit,
                                                                       dashStyle,
                                                                       dashPattern,
                                                                       startCap,
                                                                       endCap);
function WebAnnotationPenJS( 
   width : number,
   color : string,
   lineJoin : object,
   miterLimit : number,
   dashStyle : object,
   dashPattern : object,
   startCap : object,
   endCap : object
) : WebAnnotationPenJS;

Parameters

width
Pen width.
color
Pen color, for example, 'Red' or 'rgba(125,125,125,0.8)'.
lineJoin
The join style for the ends of two consecutive lines drawn with the pen. WebLineJoinEnumJS object.
miterLimit
The number that specifies maximum miter length.
dashStyle
The style used for dashed lines drawn with the pen. WebOutlineDashStyleEnumJS object.
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
9
5
11
5
See Also

Reference

WebAnnotationPenJS type