|
Draws V cubic Bezier curve.
Sintaxe Delphi:
procedure CurveToV( X2, Y2, X3, Y3: Single );
Sintaxe C++:
void __fastcall CurveToV( float X2, float Y2, float X3, float Y3 );
Descrição
Chame CurveToV para desenhar V, uma curva cúbica de Bezier que especifica explicitamente as coordenadas de dois pontos, conforme mostrado na imagem
X2, Y2

Ponto atual
Code Example
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.FileName := '.\Curve.pdf'; // Set PDF filename
HPDF.BeginDoc; // Criar o arquivo PDF
HPDF.CurrentPage.MoveTo( 50, 300 ); // Move first point
HPDF.CurrentPage.CurveToV(150, 50, 200, 200); // Draw curve
HPDF.CurrentPage.Stroke; // Stroke curve
HPDF.EndDoc; // Fechar o arquivo PDF
finally
HPDF.Free;
end;
end.
|