CurveAdapter
Vue de l’ensemble
‘CurveAdapter’ est une classe dans Aspose.Font FOSS pour Python.
CurveAdapter.quad_to_cubic convertit un Bézier quadrat (p0, q, p3) en un equivalent de Bésier cubique, retournant quatre points.
Cette classe fournit 4 méthodes pour travailler avec les objets CurveAdapter dans les programmes Python. Les méthodologies disponibles comprennent: convert_path_cubic_to_quad, Convert-path-quat_tho_cuad', 'cubain_etho-cuads. Tous les membres publics sont accessibles à n’importe quelle application Pythone après l’installation de l’Aspose.Font FOSS pour le package PyThone.
méthodes
| Signature | Description |
|---|---|
quad_to_cubic(p0: Point, q: Point, p3: Point) → tuple[Point, Point, Point, Point] | Converts a quadratic Bézier (p0, q, p3) to an equivalent cubic Bézier, returning four points |
cubic_to_quads(p0: Point, c1: Point, c2: Point, p3: Point, tolerance: float) → list[QuadSegment] | Approximates a cubic Bézier (p0, c1, c2, p3) with quadratic segments within tolerance, returning a list of QuadSegment |
convert_path_quad_to_cubic(path: GlyphPath) → GlyphPath | Converts all quadratic segments in a GlyphPath to cubic segments, returning a new GlyphPath |
convert_path_cubic_to_quad(path: GlyphPath, tolerance: float) → GlyphPath | Calls convert_path_cubic_to_quad on this CurveAdapter instance. |
Voir aussi
- Aspose.Font — référence API d’entreprise