com.aspose.html.rendering

Class GraphicContext

    • Constructor Summary

      Constructors 
      Constructor and Description
      GraphicContext() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      Object deepClone_Rename_Namesake() 
      GraphicContext deepClone()
      Creates a new instance of a GraphicContext class with the same property values as an existing instance.
      float getCharacterSpacing()
      Sets or gets character spacing.
      IBrush getFillBrush()
      Sets or gets the brush object that is used to fill the interiors of paths.
      ITrueTypeFont getFont()
      Sets or gets the true type font object that is used for rendering text.
      float getFontSize()
      Sets or gets text font size.
      int getFontStyle()
      Sets or gets text font style.
      int getLineCap()
      Sets or gets the code specifying the shape of the endpoints for any open path that is stroked.
      float getLineDashOffset()
      Sets or gets the phase offset of the current line dash pattern.
      float[] getLineDashPattern()
      Sets or gets the description of the dash pattern to be used when paths are stroked.
      int getLineDashStyle()
      Sets of gets the style of dashed lines of a stroked path.
      int getLineJoin()
      Sets or gets the code specifying the shape of joints between connected segments of a stroked path.
      float getLineWidth()
      Sets or gets the thickness of paths to be stroked.
      float getMiterLimit()
      Sets or gets the maximum length of mitered line joins for stroked paths.
      IBrush getStrokeBrush()
      Sets or gets the brush object that is used for stroked paths.
      com.aspose.ms.System.Drawing.Drawing2D.Matrix getTransformationMatrix()
      Sets or gets transformation matrix.
      void setCharacterSpacing(float value)
      Sets or gets character spacing.
      void setFillBrush(IBrush value)
      Sets or gets the brush object that is used to fill the interiors of paths.
      void setFont(ITrueTypeFont value)
      Sets or gets the true type font object that is used for rendering text.
      void setFontSize(float value)
      Sets or gets text font size.
      void setFontStyle(int value)
      Sets or gets text font style.
      void setLineCap(int value)
      Sets or gets the code specifying the shape of the endpoints for any open path that is stroked.
      void setLineDashOffset(float value)
      Sets or gets the phase offset of the current line dash pattern.
      void setLineDashPattern(float[] value)
      Sets or gets the description of the dash pattern to be used when paths are stroked.
      void setLineDashStyle(int value)
      Sets of gets the style of dashed lines of a stroked path.
      void setLineJoin(int value)
      Sets or gets the code specifying the shape of joints between connected segments of a stroked path.
      void setLineWidth(float value)
      Sets or gets the thickness of paths to be stroked.
      void setMiterLimit(float value)
      Sets or gets the maximum length of mitered line joins for stroked paths.
      void setStrokeBrush(IBrush value)
      Sets or gets the brush object that is used for stroked paths.
      void setTransformationMatrix(com.aspose.ms.System.Drawing.Drawing2D.Matrix value)
      Sets or gets transformation matrix.
      void transform(com.aspose.ms.System.Drawing.Drawing2D.Matrix matrix)
      Modify the current transformation matrix by multiplying the specified matrix.
    • Constructor Detail

      • GraphicContext

        public GraphicContext()
    • Method Detail

      • getLineCap

        public int getLineCap()

        Sets or gets the code specifying the shape of the endpoints for any open path that is stroked.

      • setLineCap

        public void setLineCap(int value)

        Sets or gets the code specifying the shape of the endpoints for any open path that is stroked.

      • getLineDashOffset

        public float getLineDashOffset()

        Sets or gets the phase offset of the current line dash pattern.

      • setLineDashOffset

        public void setLineDashOffset(float value)

        Sets or gets the phase offset of the current line dash pattern.

      • getLineDashPattern

        public float[] getLineDashPattern()

        Sets or gets the description of the dash pattern to be used when paths are stroked.

      • setLineDashPattern

        public void setLineDashPattern(float[] value)

        Sets or gets the description of the dash pattern to be used when paths are stroked.

      • getLineDashStyle

        public int getLineDashStyle()

        Sets of gets the style of dashed lines of a stroked path.

      • setLineDashStyle

        public void setLineDashStyle(int value)

        Sets of gets the style of dashed lines of a stroked path.

      • getLineJoin

        public int getLineJoin()

        Sets or gets the code specifying the shape of joints between connected segments of a stroked path.

      • setLineJoin

        public void setLineJoin(int value)

        Sets or gets the code specifying the shape of joints between connected segments of a stroked path.

      • getLineWidth

        public float getLineWidth()

        Sets or gets the thickness of paths to be stroked.

      • setLineWidth

        public void setLineWidth(float value)

        Sets or gets the thickness of paths to be stroked.

      • getMiterLimit

        public float getMiterLimit()

        Sets or gets the maximum length of mitered line joins for stroked paths. This parameter limits the length of "spikes" produced when line segments join at sharp angles.

      • setMiterLimit

        public void setMiterLimit(float value)

        Sets or gets the maximum length of mitered line joins for stroked paths. This parameter limits the length of "spikes" produced when line segments join at sharp angles.

      • getFillBrush

        public IBrush getFillBrush()

        Sets or gets the brush object that is used to fill the interiors of paths.

      • setFillBrush

        public void setFillBrush(IBrush value)

        Sets or gets the brush object that is used to fill the interiors of paths.

      • getStrokeBrush

        public IBrush getStrokeBrush()

        Sets or gets the brush object that is used for stroked paths.

      • setStrokeBrush

        public void setStrokeBrush(IBrush value)

        Sets or gets the brush object that is used for stroked paths.

      • getFont

        public ITrueTypeFont getFont()

        Sets or gets the true type font object that is used for rendering text.

      • setFont

        public void setFont(ITrueTypeFont value)

        Sets or gets the true type font object that is used for rendering text.

      • getFontSize

        public float getFontSize()

        Sets or gets text font size.

      • setFontSize

        public void setFontSize(float value)

        Sets or gets text font size.

      • getFontStyle

        public int getFontStyle()

        Sets or gets text font style.

      • setFontStyle

        public void setFontStyle(int value)

        Sets or gets text font style.

      • getCharacterSpacing

        public float getCharacterSpacing()

        Sets or gets character spacing.

      • setCharacterSpacing

        public void setCharacterSpacing(float value)

        Sets or gets character spacing.

      • getTransformationMatrix

        public com.aspose.ms.System.Drawing.Drawing2D.Matrix getTransformationMatrix()

        Sets or gets transformation matrix.

      • setTransformationMatrix

        public void setTransformationMatrix(com.aspose.ms.System.Drawing.Drawing2D.Matrix value)

        Sets or gets transformation matrix.

      • transform

        public void transform(com.aspose.ms.System.Drawing.Drawing2D.Matrix matrix)

        Modify the current transformation matrix by multiplying the specified matrix.

        Parameters:
        matrix - Transformation matrix.
      • deepClone

        public GraphicContext deepClone()

        Creates a new instance of a GraphicContext class with the same property values as an existing instance.

        Specified by:
        deepClone in interface com.aspose.ms.System.ICloneable
        Returns:
        Instance of a GraphicContext
      • deepClone_Rename_Namesake

        public Object deepClone_Rename_Namesake()