PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() Collapse AllThis method configures the miter length.
|
| HRESULT PDFPAGE_SetMiterLimit ( DOUBLE miterLimit ) |
Parameters
miterLimit
The miter limit value
Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.
Remarks
The miter limit imposes a maximum on the ratio of the miter length to the line width. When the limit is exceeded, the join is converted from a miter to a bevel.
Equivalent in new interface: IPDFDocument4::SetMiterLimit.
Example
Configuring Miter Limit
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.BeginDoc;
PDF.PDFPAGE_SetLineWidth(10);
PDF.PDFPAGE_SetMiterLimit(1);
PDF.PDFPAGE_SetLineJoin(ljMiter);
PDF.PDFPAGE_MoveTo(30, 30);
PDF.PDFPAGE_LineTo(80, 80);
PDF.PDFPAGE_LineTo(130, 30);
PDF.PDFPAGE_Stroke;
PDF.EndDoc;
C/C++
[copy to clipboard]
// PDF object is supposed to be created PDF->BeginDoc(); PDF->PDFPAGE_SetLineWidth(10); PDF->PDFPAGE_SetMiterLimit(1); PDF->PDFPAGE_SetLineJoin(TxLineJoin.ljMiter); PDF->PDFPAGE_MoveTo(30, 30); PDF->PDFPAGE_LineTo(80, 80); PDF->PDFPAGE_LineTo(130, 30); PDF->PDFPAGE_Stroke(); PDF->EndDoc();
C#
[copy to clipboard]
// PDF object is supposed to be created PDF.BeginDoc(); PDF.PDFPAGE_SetLineWidth(10); PDF.PDFPAGE_SetMiterLimit(1); PDF.PDFPAGE_SetLineJoin(TxLineJoin.ljMiter); PDF.PDFPAGE_MoveTo(30, 30); PDF.PDFPAGE_LineTo(80, 80); PDF.PDFPAGE_LineTo(130, 30); PDF.PDFPAGE_Stroke(); PDF.EndDoc();
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.BeginDoc PDF.PDFPAGE_SetLineWidth 10 PDF.PDFPAGE_SetMiterLimit 1 PDF.PDFPAGE_SetLineJoin 0 'ljMiter = 0 PDF.PDFPAGE_MoveTo 30, 30 PDF.PDFPAGE_LineTo 80, 80 PDF.PDFPAGE_LineTo 130, 30 PDF.PDFPAGE_Stroke PDF.EndDoc
See Also
Reference



