WebAnnotationPenJS Constructor(number,string,WebLineJoinEnumJS,number,WebOutlineDashStyleEnumJS,number[],WebLineCapJS,WebLineCapJS)
In This Topic
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);
function WebAnnotationPenJS(
: number,
: string,
: WebLineJoinEnumJS,
: number,
: WebOutlineDashStyleEnumJS,
: number[],
: WebLineCapJS,
: WebLineCapJS
) : WebAnnotationPenJS;
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
See Also