Class DocumentUtils
Namespace: Aspose.Page.XPS
Assembly: Aspose.Page.dll (25.1.2)
このクラスは、正式な XPS 操作 API を超えたユーティリティを提供します。
public class DocumentUtils
継承
継承されたメンバー
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
メソッド
CreateCircle(PointF, float)
円を表すパス幾何を作成します。
public XpsPathGeometry CreateCircle(PointF center, float radius)
パラメーター
center
PointF
円の中心点。
radius
float
円の半径。
戻り値
XPS パス幾何。
CreateCircularSegment(PointF, float, float, float)
2つの角度の間の円弧を表すパス幾何を作成します。
public XpsPathGeometry CreateCircularSegment(PointF center, float radius, float startAngle, float endAngle)
パラメーター
center
PointF
円の中心。
radius
float
円の半径。
startAngle
float
開始角度。
endAngle
float
終了角度。
戻り値
XPS パス幾何。
CreateEllipse(PointF, float, float)
楕円を表すパス幾何を作成します。
public XpsPathGeometry CreateEllipse(PointF center, float radiusX, float radiusY)
パラメーター
center
PointF
楕円の中心点。
radiusX
float
楕円の水平方向の半径。
radiusY
float
楕円の垂直方向の半径。
戻り値
XPS パス幾何。
CreateImage(string, RectangleF, ImageMode)
画像で満たされた矩形パスを作成します。
public XpsPath CreateImage(string fileName, RectangleF imageBox, ImageMode mode = ImageMode.FitToBox)
パラメーター
fileName
string
画像ファイルの名前。
imageBox
RectangleF
画像で満たす画像ボックス。
mode
ImageMode
画像フィットモード。
戻り値
XPS パス。
CreatePieSlice(PointF, float, float, float)
2つの放射線の間の円のスライスを表すパス幾何を作成します。
public XpsPathGeometry CreatePieSlice(PointF center, float radius, float startAngle, float endAngle)
パラメーター
center
PointF
円の中心。
radius
float
円の半径。
startAngle
float
開始放射線の角度。
endAngle
float
終了放射線の角度。
戻り値
XPS パス幾何。
CreateRectangle(RectangleF)
矩形を表すパス幾何を作成します。
public XpsPathGeometry CreateRectangle(RectangleF rectangle)
パラメーター
rectangle
RectangleF
矩形。
戻り値
XPS パス幾何。
CreateRegularCircumscribedNGon(int, PointF, float)
円に外接する正 n-gon を表すパス幾何を作成します。
public XpsPathGeometry CreateRegularCircumscribedNGon(int n, PointF center, float radius)
パラメーター
n
int
頂点の数。
center
PointF
円の中心。
radius
float
円の半径。
戻り値
XPS パス幾何。
CreateRegularInscribedNGon(int, PointF, float)
円に内接する正 n-gon を表すパス幾何を作成します。
public XpsPathGeometry CreateRegularInscribedNGon(int n, PointF center, float radius)
パラメーター
n
int
頂点の数。
center
PointF
円の中心。
radius
float
円の半径。
戻り値
XPS パス幾何。