PDF Creator Pilot documentation |
Download CHM version of this manual. |
|
![]() ![]() ![]() ![]() Collapse AllThis method configures the miter length.
|
| HRESULT SetMiterLimit ( FLOAT 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". (See LineJoinStyle.)
Example
Configuring the Miter Limit
Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.SetLineWidth(10);
PDF.SetMiterLimit(1);
PDF.SetLineJoinStyle(ljsMiter);
PDF.MoveTo(30, 30);
PDF.DrawLineTo(80, 80);
PDF.DrawLineTo(130, 30);
PDF.Stroke;
PDF.SaveToFile('test.pdf', true);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->SetLineWidth(10);
PDF->SetMiterLimit(1f);
PDF->SetLineJoinStyle(ljsMiter);
PDF->MoveTo(30, 30);
PDF->DrawLineTo(80, 80);
PDF->DrawLineTo(130, 30);
PDF->Stroke();
PDF->SaveToFile("test.pdf", true);
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.SetLineWidth(10);
PDF.SetMiterLimit(1f);
PDF.SetLineJoinStyle(LineJoinStyle.ljsMiter);
PDF.MoveTo(30, 30);
PDF.DrawLineTo(80, 80);
PDF.DrawLineTo(130, 30);
PDF.Stroke();
PDF.SaveToFile("test.pdf", true);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created PDF.SetLineWidth 10 PDF.SetMiterLimit 1 PDF.SetLineJoinStyle 0 'LineJoinStyle.ljsMiter = 0 PDF.MoveTo 30, 30 PDF.DrawLineTo 80, 80 PDF.DrawLineTo 130, 30 PDF.Stroke PDF.SaveToFile "test.pdf", true
See Also
Reference



