CurveAdapter
CurveAdapter
Overview
CurveAdapter є клас у Aspose.Font FOSS для Python.
CurveAdapter.quad_to_cubic converts a quadratic Bézier (p0, q, p3) to an equivalent cubic Bézier, returning four points.
Цей клас надає 4 методи для роботи з об’єктами CurveAdapter в програмах Python. Доступні методи включають: convert_path_cubic_to_quad, convert_path_quad_to_cubic, cubic_to_quads, quad_to_cubic. Всі публічні члени доступні будь-якій додаткові Python після встановлення Aspose.Font FOSS для пакету Python.
Methods
| Signature | Description |
|---|---|
quad_to_cubic(p0: Point, q: Point, p3: Point) → tuple[Point, Point, Point, Point] | Перообразуває квадратичний Безір (p0, q, p3) в еквівалентний кубічний Бесір, повертаючи чотири точки. |
cubic_to_quads(p0: Point, c1: Point, c2: Point, p3: Point, tolerance: float) → list[QuadSegment] | Приближує кубічний Безіер (p0, c1, c2, p3) з квадратичними сегментами в межах терпимості, повертаючи список QuadSegment |
convert_path_quad_to_cubic(path: GlyphPath) → GlyphPath | Перераховує всі квадратичні сегменти в GlyphPath до кубічних сегментів, повертаючи новий GlyphPath |
convert_path_cubic_to_quad(path: GlyphPath, tolerance: float) → GlyphPath | Покликання convert_path_cubic_to_quad на цьому CurveAdapter інстанції. |