public class DocumentUtils extends Object
This class provides utilities beyond the formal XPS manipulation API.
| Modifier and Type | Method and Description |
|---|---|
XpsPathGeometry |
createCircle(Point2D center,
float radius)
Creates a path geometry representing a circle.
|
XpsPathGeometry |
createCircularSegment(Point2D center,
float radius,
float startAngle,
float endAngle)
Creates a path geometry representing a circular segment between two angles.
|
XpsPathGeometry |
createEllipse(Point2D center,
float radiusX,
float radiusY)
Creates a path geometry representing an ellipse.
|
XpsPath |
createImage(String fileName,
Rectangle2D imageBox)
Creates a rectangular path filled with an image.
|
XpsPath |
createImage(String fileName,
Rectangle2D imageBox,
ImageMode mode)
Creates a rectangular path filled with an image.
|
XpsPathGeometry |
createPieSlice(Point2D center,
float radius,
float startAngle,
float endAngle)
Creates a path geometry representing a circle slice between two radial rays.
|
XpsPathGeometry |
createRectangle(Rectangle2D rectangle)
Creates a path geometry representing a rectangle.
|
XpsPathGeometry |
createRegularCircumscribedNGon(int n,
Point2D center,
float radius)
Creates a path geometry representing a regular n-gon circumscribed around a circle.
|
XpsPathGeometry |
createRegularInscribedNGon(int n,
Point2D center,
float radius)
Creates a path geometry representing a regular n-gon inscribed in a circle.
|
public XpsPathGeometry createRectangle(Rectangle2D rectangle)
Creates a path geometry representing a rectangle.
rectangle - The rectangle.public XpsPathGeometry createEllipse(Point2D center, float radiusX, float radiusY)
Creates a path geometry representing an ellipse.
center - The center point of the ellipse.radiusX - The horizontal radius of the ellipse.radiusY - The vertical radius of the ellipse.public XpsPathGeometry createCircle(Point2D center, float radius)
Creates a path geometry representing a circle.
center - The center point of the circle.radius - The radius of the circle.public XpsPathGeometry createRegularInscribedNGon(int n, Point2D center, float radius)
Creates a path geometry representing a regular n-gon inscribed in a circle.
n - The number of vertices.center - The center of the circle.radius - The radius of the circle.public XpsPathGeometry createRegularCircumscribedNGon(int n, Point2D center, float radius)
Creates a path geometry representing a regular n-gon circumscribed around a circle.
n - The number of vertices.center - The center of the circle.radius - The radius of the circle.public XpsPathGeometry createPieSlice(Point2D center, float radius, float startAngle, float endAngle)
Creates a path geometry representing a circle slice between two radial rays.
center - The center of the circle.radius - The radius of the circle.startAngle - The angle (degrees) of the starting ray.endAngle - The angle (degrees) of the ending ray.public XpsPathGeometry createCircularSegment(Point2D center, float radius, float startAngle, float endAngle)
Creates a path geometry representing a circular segment between two angles.
center - The center of the circle.radius - The radius of the circle.startAngle - The angle (degrees) of the starting ray.endAngle - The angle (degrees) of the ending ray.public XpsPath createImage(String fileName, Rectangle2D imageBox)
Creates a rectangular path filled with an image.
fileName - The name of the image file.imageBox - The image box to fill with the image.public XpsPath createImage(String fileName, Rectangle2D imageBox, ImageMode mode)
Creates a rectangular path filled with an image.
fileName - The name of the image file.imageBox - The image box to fill with the image.mode - Image fit mode.Copyright © 2025 Aspose. All Rights Reserved.