Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

DynaPDF.LineTo

The function draws a path from the current position up to the specified point.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DynaPDF 3.1 Yes Yes Yes Yes Yes

MBS( "DynaPDF.LineTo"; PDF; PosX; PosY )

Parameters

Parameter Description Example value
PDF The PDF reference returned from DynaPDF.New. $pdf
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)]

See also


DynaPDF.LineAnnot   -   DynaPDF.ListImages

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins