HotPDF Delphi PDF Component Developer Guide loslab Logo

 

THPDFPage.Stroke

THPDFPage

Top  Previous  Next

Strokes current path.

 

Delphi syntax:

procedure Stroke;

 

C++ syntax:

void __fastcall Stroke ( void );

 

Description

Stroke the path.

 

Code Example

program StrokeExample;
{$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 := '\Circle.pdf';                         // Set PDF filename
        HPDF.BeginDoc;                                               // Create PDF file
        HPDF.CurrentPage.Circle( 200, 200, 100 );          // Draw circle
        HPDF.CurrentPage.Stroke;                                 // and stroke
        HPDF.EndDoc;                                                  // Close PDF file
    finally
        HPDF.Free;
    end;
end.

 

Copyright©2007-2025 losLab.com