|
Draws Y cubic Bezier curve.
Delphi sözdizimi:
procedure CurveToY(X1, Y1, X3, Y3: Single);
C++ sözdizimi:
void __fastcall CurveToY( float X1, float Y1, float X3, float Y3 );
Açıklama
Resimde gösterildiği gibi iki noktanın koordinatlarını açıkça belirten Y kübik Bezier eğrisini çizmek için CurveToC çağırın
X1, Y1

Current Point
Kod Örneği
program CurveExample;
{$APPTYPE CONSOLE}
uses
SysUtils, Graphics, Classes, HPDFDoc;
var
HPDF: THotPDF;
begin
HPDF := THotPDF.Create( nil );
try
HPDF.AutoLaunch := true; // PDF dosyası otomatik olarak gösterilir
HPDF.FileName := '.\Curve.pdf'; // PDF dosya adını ayarla
HPDF.BeginDoc; // PDF dosyası oluştur
HPDF.CurrentPage.MoveTo( 50, 300 ); // Move first point
HPDF.CurrentPage.CurveToY( 60, 50, 200, 200 ); // Draw curve
HPDF.CurrentPage.Stroke; // Stroke curve
HPDF.EndDoc; // PDF dosyasını kapat
finally
HPDF.Free;
end;
end.
|