|
program RoundRect; {$APPTYPE CONSOLE} uses SysUtils, Graphics, Classes, HPDFDoc;
var HPDF: THotPDF;
const DashArray: array[0..3] of Byte = (6, 4, 2, 4);
begin HPDF := THotPDF.Create(nil); try HPDF.AutoLaunch := true; // PDF dosyası otomatik olarak gösterilir HPDF.FileName := 'RoundRect.pdf'; HPDF.BeginDoc; // PDF dosyası oluştur
HPDF.CurrentPage.SetDash( DashArray, 0 ); // - . - tire desenini ayarla HPDF.CurrentPage.RoundRect( 10, 10, 200, 100, 20, 20 ); // Yuvarlatılmış dikdörtgen çiz HPDF.CurrentPage.Stroke; // ve kontur çiz
HPDF.EndDoc; // PDF dosyasını kapat finally HPDF.Free; end; end. |