PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis method flushes the current path using a non-zero winding number rule.
|
| HRESULT PDFPAGE_Stroke () |
Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.
Remarks
This method strokes the current paths by the current stroke color and current line width.
The stroke color may be set using methods PDFPAGE_SetColorStroke, PDFPAGE_SetCMYKColorStroke, PDFPAGE_SetGrayStroke, PDFPAGE_SetRGBColorStroke. The current line width may be set using method PDFPAGE_SetLineWidth.
Equivalent in new interface: IPDFDocument4::Stroke.
Example
Using Stroke to Create an Ellipse
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_Ellipse(10, 10, 310, 210);
PDF.PDFPAGE_Stroke;
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_Stroke(); PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created PDF.BeginDoc(); PDF.PDFPAGE_Ellipse(10, 10, 310, 210); PDF.PDFPAGE_Stroke(); 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_Stroke PDF.EndDoc
See Also


