com.aspose.html.dom.canvas

Interface ICanvasDrawingStyles

    • Method Detail

      • setLineWidth

        @DOMNameAttribute(name="lineWidth")
        void setLineWidth(double value)

        Width of lines. Default 1.0

      • getLineCap

        @DOMNameAttribute(name="lineCap")
        String getLineCap()

        Type of endings on the end of lines. Possible values: butt (default), round, square.

      • setLineCap

        @DOMNameAttribute(name="lineCap")
        void setLineCap(String value)

        Type of endings on the end of lines. Possible values: butt (default), round, square.

      • getLineJoin

        @DOMNameAttribute(name="lineJoin")
        String getLineJoin()

        Defines the type of corners where two lines meet. Possible values: round, bevel, miter (default).

      • setLineJoin

        @DOMNameAttribute(name="lineJoin")
        void setLineJoin(String value)

        Defines the type of corners where two lines meet. Possible values: round, bevel, miter (default).

      • getMiterLimit

        @DOMNameAttribute(name="miterLimit")
        double getMiterLimit()

        Miter limit ratio. Default 10.

      • setMiterLimit

        @DOMNameAttribute(name="miterLimit")
        void setMiterLimit(double value)

        Miter limit ratio. Default 10.

      • getLineDash

        @DOMNameAttribute(name="getLineDash")
        double[] getLineDash()

        Returns the current line dash pattern array containing an even number of non-negative numbers.

        Returns:
        An Array. A list of numbers that specifies distances to alternately draw a line and a gap (in coordinate space units).
      • setLineDash

        @DOMNameAttribute(name="setLineDash")
        void setLineDash(double[] segments)

        Sets the current line dash pattern.

        Parameters:
        segments - An Array of numbers which specify distances to alternately draw a line and a gap (in coordinate space units)
      • getLineDashOffset

        @DOMNameAttribute(name="lineDashOffset")
        double getLineDashOffset()

        Specifies where to start a dash array on a line.

      • setLineDashOffset

        @DOMNameAttribute(name="lineDashOffset")
        void setLineDashOffset(double value)

        Specifies where to start a dash array on a line.

      • getTextAlign

        @DOMNameAttribute(name="textAlign")
        String getTextAlign()

        Text alignment setting. Possible values: start (default), end, left, right or center.

      • setTextAlign

        @DOMNameAttribute(name="textAlign")
        void setTextAlign(String value)

        Text alignment setting. Possible values: start (default), end, left, right or center.

      • getTextBaseline

        @DOMNameAttribute(name="textBaseline")
        String getTextBaseline()

        Baseline alignment setting. Possible values: top, hanging, middle, alphabetic (default), ideographic, bottom.

      • setTextBaseline

        @DOMNameAttribute(name="textBaseline")
        void setTextBaseline(String value)

        Baseline alignment setting. Possible values: top, hanging, middle, alphabetic (default), ideographic, bottom.