Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   Crossplatform   Server (Not)   Client   Components   Old   Guides
New in version: 5.0   5.1   5.2   5.3   5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1    Statistic  

DynaPDF.MoveTo

The function moves the current position to the point specified by PosX, PosY.

Component: DynaPDF
Version: 3.1
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "DynaPDF.MoveTo"; 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 moves the current position to the point specified by PosX, PosY.
This function must be called before a line or curved path segment can be drawn. See also DynaPDF.LineTo, DynaPDF.Bezier_1_2_3.

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.MovePage   -   DynaPDF.New

Feedback: Report problem or ask question.




Links
MBS REALbasic Plugins - Bilder aus Nickenich