|
Y 3次ベジェ曲線を描画します。
Delphi 構文:
procedure CurveToY(X1, Y1, X3, Y3: Single);
C++ 構文:
void __fastcall CurveToY( float X1, float Y1, float X3, float Y3 );
説明
CurveToY を呼び出して、図に示すように 2つの点の座標を明示的に指定して Y 3次ベジェ曲線を描画します。
X1, Y1

Current Point
コード例
program CurveExample;
{$APPTYPE CONSOLE}
uses
SysUtils, Graphics, Classes, HPDFDoc;
var
HPDF: THotPDF;
begin
HPDF := THotPDF.Create( nil );
try
HPDF.AutoLaunch := true; // PDF file will be shown automatically
HPDF.File名前 := '.\Curve.pdf'; // Set PDF filename
HPDF.BeginDoc; // Create PDF file
HPDF.CurrentPage.MoveTo( 50, 300 ); // Move first point
HPDF.CurrentPage.CurveToY( 60, 50, 200, 200 ); // Draw curve
HPDF.CurrentPage.Stroke; // Stroke curve
HPDF.EndDoc; // Close PDF file
finally
HPDF.Free;
end;
end.
|