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

現在の点
コード例
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.CurveToV(150, 50, 200, 200); // Draw curve
HPDF.CurrentPage.Stroke; // Stroke curve
HPDF.EndDoc; // Close PDF file
finally
HPDF.Free;
end;
end.
|