com.aspose.html.rendering.xps

Class XpsDevice

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addRect(com.aspose.ms.System.Drawing.RectangleF rect)
      Appends a rectangle to the current path as a complete subpath.
      void beginDocument(Document document, Class<? extends GraphicContext> clazz)
      Begins rendering of the document.
      boolean beginElement(Element element, com.aspose.ms.System.Drawing.RectangleF rect)
      Begins rendering of the html element.
      void beginPage(com.aspose.ms.System.Drawing.SizeF size)
      Begins rendering of the new page.
      void clip(int mode)
      Modifies the current clipping path by intersecting it with the current path, using the FillMode rule to determine the region to fill.
      void closePath()
      Closes the current subpath by appending a straight line segment from the current point to the starting point of the subpath.
      void cubicBezierTo(com.aspose.ms.System.Drawing.PointF cubP1, com.aspose.ms.System.Drawing.PointF cubP2, com.aspose.ms.System.Drawing.PointF cubP3)
      Appends a cubic Bézier curve to the current path.
      void drawImage(byte[] data, int type, com.aspose.ms.System.Drawing.RectangleF rectangle)
      Draws the specified image.
      void endDocument()
      Ends rendering of the document.
      void endElement(Element element)
      Ends rendering of the html element.
      void endPage()
      Ends rendering of the current page.
      void fill(int mode)
      Fills the entire region enclosed by the current path.
      void fillText(String text, com.aspose.ms.System.Drawing.PointF position)
      Fills the specified text string at the specified location.
      Class<? extends GraphicContext> getGraphicContextClass()
      Pushes a copy of the entire graphics context onto the stack.
      void lineTo(com.aspose.ms.System.Drawing.PointF pos)
      Appends a straight line segment from the current point to the point (pt).
      void moveTo(com.aspose.ms.System.Drawing.PointF pos)
      Begins a new subpath by moving the current point to coordinates of the parameter pt, omitting any connecting line segment.
      void restoreGraphicContext()
      Restores the entire graphics context to its former value by popping it from the stack.
      void stroke()
      Strokes a line along the current path.
      void strokeAndFill(int mode)
      Strokes and fill current path.
      void strokeText(String text, com.aspose.ms.System.Drawing.PointF position)
      Strokes the specified text string at the specified location.