Components for Developers
© 2000-2012, Two Pilots

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

PDF Creator Pilot documentation

Download CHM version of this manual.
Graphics
Collapse All

This method configures the line join style.

Syntax

HRESULT SetLineJoinStyle (
LineJoinStyle lineJoin
)
Parameters
lineJoin
New line join style

Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.

Remarks

The method sets the style of the shape to be used at the corners of paths that are stroked.

Example

Line Join Type Example

Delphi
[copy to clipboard]
{ PDF object is supposed to be created }
PDF.SetLineWidth(10);

PDF.SetLineJoinStyle(ljsMiter);
PDF.MoveTo(30, 30);
PDF.DrawLineTo(80, 80);
PDF.DrawLineTo(130, 30);
PDF.Stroke;

PDF.SetLineJoinStyle(ljsRound);
PDF.MoveTo(30, 60);
PDF.DrawLineTo(80, 110);
PDF.DrawLineTo(130, 60);
PDF.Stroke;

PDF.SetLineJoinStyle(ljsBevel)
PDF.MoveTo(30, 90);
PDF.DrawLineTo(80, 140);
PDF.DrawLineTo(130, 90);
PDF.Stroke;

PDF.SaveToFile('test.pdf', true);
C/C++
[copy to clipboard]
// PDF object is supposed to be created
PDF->SetLineWidth(10);

PDF->SetLineJoinStyle(LineJoinStyle.ljsMiter);
PDF->MoveTo(30, 30);
PDF->DrawLineTo(80, 80);
PDF->DrawLineTo(130, 30);
PDF->Stroke();

PDF->SetLineJoinStyle(LineJoinStyle.ljsRound);
PDF->MoveTo(30, 60);
PDF->DrawLineTo(80, 110);
PDF->DrawLineTo(130, 60);
PDF->Stroke();

PDF->SetLineJoinStyle(LineJoinStyle.ljsBevel)
PDF->MoveTo(30, 90);
PDF->DrawLineTo(80, 140);
PDF->DrawLineTo(130, 90);
PDF->Stroke();

PDF->SaveToFile("test.pdf", true);
C#
[copy to clipboard]
// PDF object is supposed to be created
PDF.SetLineWidth(10);

PDF.SetLineJoinStyle(LineJoinStyle.ljsMiter);
PDF.MoveTo(30, 30);
PDF.DrawLineTo(80, 80);
PDF.DrawLineTo(130, 30);
PDF.Stroke();

PDF.SetLineJoinStyle(LineJoinStyle.ljsRound);
PDF.MoveTo(30, 60);
PDF.DrawLineTo(80, 110);
PDF.DrawLineTo(130, 60);
PDF.Stroke();

PDF.SetLineJoinStyle(LineJoinStyle.ljsBevel)
PDF.MoveTo(30, 90);
PDF.DrawLineTo(80, 140);
PDF.DrawLineTo(130, 90);
PDF.Stroke();

PDF.SaveToFile("test.pdf", true);
Visual Basic
[copy to clipboard]
' PDF object is supposed to be created
PDF.SetLineWidth 10

PDF.SetLineJoinStyle 0 'LineJoinStyle.ljsMiter = 0
PDF.MoveTo 30, 30
PDF.DrawLineTo 80, 80
PDF.DrawLineTo 130, 30
PDF.Stroke

PDF.SetLineJoinStyle 1 'LineJoinStyle.ljsRound = 1
PDF.MoveTo 30, 60
PDF.DrawLineTo 80, 110
PDF.DrawLineTo 130, 60
PDF.Stroke

PDF.SetLineJoinStyle 2 'LineJoinStyle.ljsBevel = 2
PDF.MoveTo 30, 90
PDF.DrawLineTo 80, 140
PDF.DrawLineTo 130, 90
PDF.Stroke

PDF.SaveToFile "test.pdf", true

See Also

PDF Library Download Features Manual Tutorials FAQ Pricing HTML2PDF-X Pilot History In the Lab

 

 

PDF Library | Virtual Printer | Converters to PDF

Support | Blog | Forum | Contacts

© 2000-2012, Two Pilots