Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
DynaPDF.LineTo
The function draws a path from the current position up to the specified point.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| DynaPDF | 3.1 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| The PDF reference returned from DynaPDF.New. | ||
| PosX | The x-coordinate. | $x |
| PosY | The y-coordinate. | $y |
Result
Returns OK or error.
Description
The function draws a path from the current position up to the specified point.The start point must be set with another vector graphic function beforehand, such as DynaPDF.MoveTo or other functions which draw an open path segment.
In PDF all vector graphics are defined as paths, a path is invisible as long it was not stroked, filled or both. See also Path construction and Painting.
See also LineTo function in DynaPDF manual.
Examples
Draw two lines in black:
Set Variable [$r; Value:MBS ( "DynaPDF.SetStrokeColor" ; $pdf ; 0; 0; 0 )]
Set Variable [$r; Value:MBS ( "DynaPDF.SetLineWidth" ; $pdf ; 1 )]
Set Variable [$r; Value:MBS ( "DynaPDF.MoveTo" ; $pdf ; 20; 20)]
Set Variable [$r; Value:MBS ( "DynaPDF.LineTo" ; $pdf ; 20; 40)]
Set Variable [$r; Value:MBS ( "DynaPDF.MoveTo" ; $pdf ; 30; 30)]
Set Variable [$r; Value:MBS ( "DynaPDF.LineTo" ; $pdf ; 30; 50)]
Set Variable [$r; Value:MBS ( "DynaPDF.StrokePath" ; $pdf)]
Draw triangle path:
# blue color
Set Variable [ $r ; Value: MBS("DynaPDF.SetFillColor"; $pdf; 0; 0; 1) ]
# go to start point
Set Variable [ $r ; Value: MBS("DynaPDF.MoveTo"; $pdf; 100; 100) ]
# add more points
Set Variable [ $r ; Value: MBS("DynaPDF.LineTo"; $pdf; 200; 100) ]
Set Variable [ $r ; Value: MBS("DynaPDF.LineTo"; $pdf; 100; 200) ]
# and fill
Set Variable [ $r ; Value: MBS("DynaPDF.ClosePath"; $pdf; "fill") ]
See also
- DynaPDF.Bezier123
- DynaPDF.ClipPath
- DynaPDF.ClosePath
- DynaPDF.LineAnnot
- DynaPDF.MoveTo
- DynaPDF.New
- DynaPDF.SetFillColor
- DynaPDF.SetLineWidth
- DynaPDF.SetStrokeColor
- DynaPDF.StrokePath
Blog Entries
Created 18th August 2014, last changed 7th March 2020
DynaPDF.LineAnnot - DynaPDF.List
Feedback: Report problem or ask question.
Links
MBS FileMaker Plugins