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

 

THPDFPage.Fill

THPDFPage

 

Top  Previous  Next

Fill the path,

 

Delphi syntax:

procedure Fill;

 

C++ syntax:

void __fastcall Fill ( void );

 

Description

Fill the path, using the nonzero winding number rule to determine the region to fill.

Description

The nonzero winding 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 examining the places where a segment of the path crosses the ray. Starting with a count of zero, add one each time a path segment crosses the ray from left to right and subtract one each time a path segment crosses the ray from right to left. After counting the crossings, if the result is zero then the point is outside the path. Otherwise, it is inside.

 

Code Example

HPDF.CurrentPage.Ellipse( 100, 100, 75, 50 );   // Center on 100, 100, X Radius 75, Y Radius 50
HPDF.CurrentPage.Stroke;                          // Draw ellipse outline

 

 

Copyright©2007-2025 losLab.com