CurveAdapter
概要
CurveAdapter は Aspose.Font の Python 向け FOSS のクラスです。
CurveAdapter.quad_to_cubic は二次ベジエ (p0, q, p3) を同等の三次ベジエに変換し、4 つの点を返します。
このクラスは Python プログラムで CurveAdapter オブジェクトを操作するための 4 つのメソッドを提供します。利用可能なメソッドは convert_path_cubic_to_quad、convert_path_quad_to_cubic、cubic_to_quads、quad_to_cubic です。Aspose.Font の Python 用 FOSS パッケージをインストールすれば、すべての公開メンバーは任意の Python アプリケーションからアクセス可能です。
メソッド
| シグネチャ | 説明 |
|---|---|
quad_to_cubic(p0: Point, q: Point, p3: Point) → tuple[Point, Point, Point, Point] | 二次ベジェ (p0, q, p3) を同等の三次ベジェに変換し、4つの点を返します |
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 | この CurveAdapter インスタンスに対して convert_path_cubic_to_quad を呼び出します. |