Pathée
Vue de l’ensemble
‘Path’ est un type dans Aspose.PDF FOSS pour Go.
Path est une séquence des opérations MoveTo/LineTo / CurveTo (Close) qui définissent un chemin arbitraire 2D dans l’espace utilisateur PDF (original à la partie inférieure gauche de la page, Y en haut).
Ce type fournit 6 méthodes pour travailler avec les objets Path dans les programmes Go. Les méthodologies disponibles comprennent: Arc, Close , Tourage ; ‘LineTo; 'MoveTo' ; QuadTo’. Tous les membres publics sont accessibles à n’importe quelle application Go après l’installation de la partie Aspose.PDF FOSS pour Go .
méthodes
| Signature | Description |
|---|---|
MoveTo(x: float64) → *Path | MoveTo begins a new subpath at (x, y). |
LineTo(x: float64) → *Path | LineTo adds a straight line segment from the current point to (x, y). |
Close() → *Path | Close closes the current subpath with a line back to the most recent MoveTo. |
CurveTo(c1x: float64) → *Path | CurveTo adds a cubic Bezier curve from the current point to (x, y) with control points (c1x, c1y) and (c2x, c2y). |
QuadTo(cx: float64) → *Path | QuadTo adds a quadratic Bezier curve (one control point) from the current point to (x, y), automatically converted to the equivalent cubic per the standard quadratic-to-cubic formula: |
Arc(cx: float64) → *Path | Arc adds an arc to the path, approximated by cubic Bezier curves. |
Voir aussi
- Aspose.PDF — Résultats de l’API d’entreprise