PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis method fills a path with color using a non-zero winding number rule.
|
| HRESULT PDFPAGE_Fill () |
Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.
Remarks
This method is used to fill the inside of a path with the current fill color. This method uses the non-zero winding number rule for defining the inside of the path.
The fill color may be set using methods PDFPAGE_SetColorFill, PDFPAGE_SetCMYKColorFill, PDFPAGE_SetGrayFill, PDFPAGE_SetRGBColorFill.
Equivalent in new interface: IPDFDocument4::Fill.
Example
Filling an Ellipse
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_Ellipse(10, 10, 310, 210);
PDF.PDFPAGE_Fill;
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created PDF->BeginDoc(); PDF->PDFPAGE_Ellipse(10, 10, 310, 210); PDF->PDFPAGE_Fill(); PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created PDF.BeginDoc(); PDF.PDFPAGE_Ellipse(10, 10, 310, 210); PDF.PDFPAGE_Fill(); PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.BeginDoc PDF.PDFPAGE_Ellipse 10, 10, 310, 210 PDF.PDFPAGE_Fill PDF.EndDoc
See Also


