Class DocumentUtils
Namespace: Aspose.Page.XPS
Assembly: Aspose.Page.dll (25.8.0)
This class provides utilities beyond the formal XPS manipulation API.
public class DocumentUtilsInheritance
Inherited Members
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Methods
CreateCircle(PointF, float)
Creates a path geometry representing a circle.
public XpsPathGeometry CreateCircle(PointF center, float radius)Parameters
center PointF
The center point of the circle.
radius float
The radius of the circle.
Returns
The XPS path geometry.
CreateCircularSegment(PointF, float, float, float)
Creates a path geometry representing a circular segment between two angles.
public XpsPathGeometry CreateCircularSegment(PointF center, float radius, float startAngle, float endAngle)Parameters
center PointF
The center of the circle.
radius float
The radius of the circle.
startAngle float
The starting angle.
endAngle float
The ending angle.
Returns
The XPS path geometry.
CreateEllipse(PointF, float, float)
Creates a path geometry representing an ellipse.
public XpsPathGeometry CreateEllipse(PointF center, float radiusX, float radiusY)Parameters
center PointF
The center point of the ellipse.
radiusX float
The horizontal radius of the ellipse.
radiusY float
The vertical radius of the ellipse.
Returns
The XPS path geometry.
CreateImage(string, RectangleF, ImageMode)
Creates a rectangular path filled with an image.
public XpsPath CreateImage(string fileName, RectangleF imageBox, ImageMode mode = ImageMode.FitToBox)Parameters
fileName string
The name of the image file.
imageBox RectangleF
The image box to fill with the image.
mode ImageMode
Image fit mode.
Returns
The XPS path.
CreatePieSlice(PointF, float, float, float)
Creates a path geometry representing a circle slice between two radial rays.
public XpsPathGeometry CreatePieSlice(PointF center, float radius, float startAngle, float endAngle)Parameters
center PointF
The center of the circle.
radius float
The radius of the circle.
startAngle float
The angle of the starting ray.
endAngle float
The angle of the ending ray.
Returns
The XPS path geometry.
CreateRectangle(RectangleF)
Creates a path geometry representing a rectangle.
public XpsPathGeometry CreateRectangle(RectangleF rectangle)Parameters
rectangle RectangleF
The rectangle.
Returns
The XPS path geometry.
CreateRegularCircumscribedNGon(int, PointF, float)
Creates a path geometry representing a regular n-gon circumscribed around a circle.
public XpsPathGeometry CreateRegularCircumscribedNGon(int n, PointF center, float radius)Parameters
n int
The number of vertices.
center PointF
The center of the circle.
radius float
The radius of the circle.
Returns
The XPS path geometry.
CreateRegularInscribedNGon(int, PointF, float)
Creates a path geometry representing a regular n-gon inscribed in a circle.
public XpsPathGeometry CreateRegularInscribedNGon(int n, PointF center, float radius)Parameters
n int
The number of vertices.
center PointF
The center of the circle.
radius float
The radius of the circle.
Returns
The XPS path geometry.