THPDFPage.Fill 메서드

 

THPDFPage.Fill

THPDFPage

 

맨 위  이전  다음

Fill the path,

 

Delphi 구문:

procedure Fill;

 

C++ 구문:

void __fastcall Fill ( void );

 

설명

Nonzero winding number rule을 사용해 fill할 region을 결정하면서 path를 fill합니다

설명

Nonzero winding rule은 한 point에서 임의 방향의 infinity까지 ray를 그리고 path segment가 ray를 crossing하는 지점을 검사하여 point가 region 내부인지 결정하는 fill rule입니다. Count 0에서 시작해 path segment가 ray를 left to right로 crossing할 때마다 1을 더하고, right to left로 crossing할 때마다 1을 뺍니다. Crossing을 모두 센 뒤 결과가 zero이면 point는 path 밖에 있고, 그렇지 않으면 내부에 있습니다

 

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