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.SkewCoords
The function skews the coordinate system and sets the coordinate origin to the point OriginX, OriginY.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| DynaPDF | 3.2 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| The PDF reference returned from DynaPDF.New. | ||
| a | Angle alpha in degrees | 10 |
| b | Angle beta in degrees | 10 |
| x | Origin of the x-axis | $x |
| y | Origin of the y-axis | $y |
Result
Returns OK on success and error on failure.
Description
The function skews the coordinate system and sets the coordinate origin to the point OriginX, OriginY.It is highly recommended to save the graphics state beforehand, otherwise it is very difficult or impossible to restore the coordinate system later.
After the coordinate system was changed by the function, bottom-up coordinates are active. It is not possible to use top-down coordinates with a skewed coordinate system.
Please do not try to scale/skew/translate back later. use DynaPDF.SaveGraphicState and DynaPDF.RestoreGraphicState.
See also SkewCoords function in DynaPDF manual.
Examples
Skew and draw rectangle:
MBS( "DynaPDF.SaveGraphicState"; $PDF )
MBS( "DynaPDF.SkewCoords"; $PDF; 20; 20; 200;200)
MBS( "DynaPDF.Rectangle"; $PDF; 0; 0; 200; 100; "stroke" )
MBS( "DynaPDF.RestoreGraphicState"; $PDF )
See also
- DynaPDF.DrawChord
- DynaPDF.New
- DynaPDF.Rectangle
- DynaPDF.RestoreGraphicState
- DynaPDF.Save
- DynaPDF.SaveGraphicState
- DynaPDF.ScaleCoords
Example Databases
Created 18th August 2014, last changed 18th August 2014
DynaPDF.ShowDifferences - DynaPDF.SquareAnnot
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins