VintaSoft Imaging .NET SDK 12.5: Documentation for Web developer
Vintasoft.Imaging.Annotation.UI Namespace / WebAnnotationPenJS type / WebAnnotationPenJS Constructor(number,string,WebLineJoinEnumJS,number,WebOutlineDashStyleEnumJS,number[],WebLineCapJS,WebLineCapJS)
Syntax BrowserCompatibility SeeAlso
In This Topic
    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(
    width
    Pen width.
    : number,
    color
    Pen color, for example, "Red" or "rgba(125,125,125,0.8)".
    : string,
    lineJoin
    An instance of WebLineJoinEnumJS class that defines the join style for the ends of two consecutive lines drawn with the pen.
    : WebLineJoinEnumJS,
    miterLimit
    The number that specifies maximum miter length.
    : number,
    dashStyle
    An instance of WebOutlineDashStyleEnumJS class that defines the style used for dashed lines drawn with the pen.
    : WebOutlineDashStyleEnumJS,
    dashPattern
    Dash pattern. Array of numbers.
    : number[],
    startCap
    The cap style used at the beginning of lines drawn with the pen.
    : WebLineCapJS,
    endCap
    The cap style used at the end of lines drawn with the pen.
    : 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
    56+
    45+
    11
    See Also