曲線
概要
Curve は .NET 用 Aspose.PDF FOSS のクラスです。
継承元: Shape。
ベジエ曲線の形状。
このクラスは .NET プログラムで Curve オブジェクトを操作するための 3 つのメソッドを提供します。
利用可能なメソッドは次のとおりです: CheckBounds、Curve。
すべてのパブリック メンバーは、Aspose.PDF FOSS for .NET パッケージをインストールした後、任意の .NET アプリケーションからアクセスできます。
プロパティ: Cx1、Cx2、Cy1、Cy2、GraphInfo、PositionArray、その他 5 つ。
プロパティ
| 名前 | 型 | アクセス | 説明 |
|---|---|---|---|
X1 | double | Read/Write | x1 を取得または設定します。 |
Y1 | double | Read/Write | y1 を取得または設定します。 |
Cx1 | double | Read/Write | cx1 を取得または設定します。 |
Cy1 | double | Read/Write | cy1 を取得または設定します。 |
Cx2 | double | Read/Write | cx2 を取得または設定します。 |
Cy2 | double | Read/Write | cy2 を取得または設定します。 |
X2 | double | Read/Write | x2 を取得または設定します。 |
Y2 | double | Read/Write | y2 を取得または設定します。 |
PositionArray | float[] | Read/Write | 曲線制御点は [x1, y1, cx1, cy1, cx2, cy2, x2, y2] として表されます。 |
GraphInfo | Aspose.Pdf.GraphInfo | Read/Write | グラフ情報を取得または設定します。 |
Text | Aspose.Pdf.Text.TextFragment? | Read/Write | 形状と共に描画されるオプションのテキストラベル。 |
方法
| Signature | Description |
|---|---|
Curve(x1: double, y1: double, cx1: double, cy1: double, cx2: double, cy2: double, x2: double, y2: double) | (x1,y1) から (x2,y2) へ、制御点 (cx1,cy1) と (cx2,cy2) を持つ 3次ベジェ曲線を作成します。 |
Curve(positionArray: float[]) | 公開 API に一致するコンストラクタ: Curve(float[] positionArray) ただし positionArray = [x1, y1, cx1, cy1, cx2, cy2, x2, y2]。 |
CheckBounds(containerWidth: double, containerHeight: double) | すべての制御点がコンテナの原点基準 AABB 内にあるかどうか。 |