THPDFPage.ClosePathEoFillAndStroke Method
HotPDF Delphi PDF Component Developer Guide loslab Logo

 

THPDFPage.ClosePathEoFillAndStroke

THPDFPage

 

Top  Previous  Next

Close, fill and stroke current path.

 

Delphi syntax:

procedure ClosePathEoFillAndStroke;

 

C++ syntax:

void __fastcall ClosePathEoFillAndStroke( void );

 

Description

Close, fill, and then stroke the path, using the even-odd rule to determine the region to fill.

Description

The even-odd rule is a fill rule that determines whether a point is inside a region by drawing a ray from that point to infinity in any direction and counting the number of path segments that the ray crosses. If this number is odd, the point is inside; if even, the point is outside.

 

Code Example

HPDF.CurrentPage.MoveTo( 100, 100 );
HPDF.CurrentPage.LineTo( 200, 100 );
HPDF.CurrentPage.LineTo( 200, 200 );
HPDF.CurrentPage.LineTo( 100, 200 );
HPDF.CurrentPage.ClosePathFillAndStroke;

 

Copyright©2007-2025 losLab.com