PDFium Delphi Component Docs

BezierTo メソッド

コンポーネント: TPdf  ·  ユニット: PDFium
現在の point から、control point (X1,Y1) と (X2,Y2) を通って (X3,Y3) へ cubic Bezier curve を追加します

構文

procedure BezierTo(X1, Y1, X2, Y2, X3, Y3: Single);

説明

現在の point から、control point (X1,Y1) と (X2,Y2) を通って (X3,Y3) へ cubic Bezier curve を追加します

角の丸めや任意の曲線を組み立てるためのプリミティブで、PDF の "c" オペレーターのセマンティクスに対応します

現在のページへのすべての編集は PDFium のメモリ上の表現にバッファリングされます。UpdatePage で描画キャッシュを更新し、SaveToFile で変更を永続化してください

備考

例

begin
  if Pdf1.Active then
  begin
    Pdf1.CreatePath(100, 100, fmWinding, clYellow, $FF, True, clRed, $FF, 1.5);
    Pdf1.LineTo(200, 150);
    Pdf1.LineTo(200, 200);
    Pdf1.ClosePath;
    Pdf1.AddPath;
    Pdf1.UpdatePage;
  end;
end;

関連項目

MoveTo, LineTo, ClosePath, AddPath