|
program PieExample; {$APPTYPE CONSOLE} uses SysUtils, Graphics, Classes, HPDFDoc;
var HPDF: THotPDF;
begin HPDF := THotPDF.Create( nil ); try HPDF.AutoLaunch := true; // PDF 파일이 자동으로 표시됩니다 HPDF.FileName := 'Curve.pdf'; HPDF.BeginDoc; // PDF 파일 생성 HPDF.CurrentPage.DrawPie(10, 10, 110, 110, 50, 10, 10, 50 ); // Draw Pie HPDF.CurrentPage.Fill; // Stroke curve HPDF.EndDoc; // PDF 파일 닫기 finally HPDF.Free; end; end. |