DynaPDF.SkewCoords
------------------

The function skews the coordinate system and sets the coordinate origin to the point OriginX, OriginY.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [3.2](newinversion32.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.SkewCoords"; PDF; a; b; X; Y ) 

**MBS**( **"DynaPDF.SkewCoords";** /\* The function skews the coordinate system and sets the coordinate origin to the point OriginX, OriginY. \*/  
**$PDF**; /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/   
**$a**; /\* Angle alpha in degreese.g. 10 \*/   
**$b**; /\* Angle beta in degreese.g. 10 \*/   
**$X**; /\* Origin of the x-axis \*/   
**$Y**) /\* Origin of the y-axis \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |
| 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](DynaPDFSaveGraphicState.md) and [DynaPDF.RestoreGraphicState](DynaPDFRestoreGraphicState.md).  
See also [SkewCoords](https://www.monkeybreadsoftware.com/DynaPDF-Manual/SkewCoords.shtml) function in DynaPDF manual.

### Examples

Skew and draw rectangle:

 MBS ( "[DynaPDF.SaveGraphicState](DynaPDFSaveGraphicState.md)"; $PDF )  
MBS ( "DynaPDF.SkewCoords"; $PDF ; 20; 20; 200;200)  
MBS ( "[DynaPDF.Rectangle](DynaPDFRectangle.md)"; $PDF ; 0; 0; 200; 100; "stroke" )  
MBS ( "[DynaPDF.RestoreGraphicState](DynaPDFRestoreGraphicState.md)"; $PDF )  
### See also

- [DynaPDF.DrawChord](DynaPDFDrawChord.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.Rectangle](DynaPDFRectangle.md)
- [DynaPDF.RestoreGraphicState](DynaPDFRestoreGraphicState.md)
- [DynaPDF.Save](DynaPDFSave.md)
- [DynaPDF.SaveGraphicState](DynaPDFSaveGraphicState.md)
- [DynaPDF.ScaleCoords](DynaPDFScaleCoords.md)

### Example Databases

- [DynaPDF/Coordinates](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/DynaPDF/Coordinates.shtml#4ScriptAnchor_)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[DynaPDF.ShowDifferences](DynaPDFShowDifferences.md) - [DynaPDF.SquareAnnot](DynaPDFSquareAnnot.md)

[HTML Version](DynaPDFSkewCoords.shtml)