GMImage.AddPathCurvetoAbs
-------------------------

Draw a single curve.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [GraphicsMagick](component_GraphicsMagick.md) | [4.1](newinversion41.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "GMImage.AddPathCurvetoAbs"; ImageRef; x1; y1; x2; y2; X; Y ) 

**MBS**( **"GMImage.AddPathCurvetoAbs";** /\* Draw a single curve. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$x1**; /\* The first control point. \*/   
**$y1**; /\* The first control point. \*/   
**$x2**; /\* The second control point. \*/   
**$y2**; /\* The second control point. \*/   
**$X**; /\* Destination point coordinate. \*/   
**$Y**) /\* Destination point coordinate. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| x1 | The first control point. |  |
| y1 | The first control point. |  |
| x2 | The second control point. |  |
| y2 | The second control point. |  |
| X | Destination point coordinate. |  |
| Y | Destination point coordinate. |  |

### Result

Returns OK or error.

### Description

Draw a single curve.  
Draws a cubic Bézier curve from the current point to (x,\*y\*) using (x1,\*y1\*) as the control point at the beginning of the curve and (x2,\*y2\*) as the control point at the end of the curve. GMImage.AddPathCurvetoAbs indicates that absolutecoordinates will follow; [GMImage.AddPathCurvetoRel](GMImageAddPathCurvetoRel.md) indicates that relative coordinates will follow. Multiple sets of coordinates may be specified to draw a polybezier. At the end of the command, the new current point becomes the final (x,\*y\*) coordinate pair used in the polybezier.  
### Examples

Draws a bezier curve:

 $r = MBS ("[GMImage.AddPathMovetoAbs](GMImageAddPathMovetoAbs.md)"; $img ; 100; 100 )  
$r = MBS ("GMImage.AddPathCurvetoAbs"; $img ; 100; 300; 300; 100; 300; 300 )  
$r = MBS ("[GMImage.DrawPath](GMImageDrawPath.md)"; $img )  
### See also

- [GMImage.AddPathArcAbs](GMImageAddPathArcAbs.md)
- [GMImage.AddPathCurvetoRel](GMImageAddPathCurvetoRel.md)
- [GMImage.AddPathLinetoAbs](GMImageAddPathLinetoAbs.md)
- [GMImage.AddPathLinetoRel](GMImageAddPathLinetoRel.md)
- [GMImage.AddPathMovetoAbs](GMImageAddPathMovetoAbs.md)
- [GMImage.AddPathMovetoRel](GMImageAddPathMovetoRel.md)
- [GMImage.AddPathSmoothCurvetoAbs](GMImageAddPathSmoothCurvetoAbs.md)
- [GMImage.DrawPath](GMImageDrawPath.md)

### Example Databases

- [GraphicsMagick/GraphicsMagick Path Drawing](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/GraphicsMagick%20Path%20Drawing.shtml#3ScriptAnchor_)

### Blog Entries

- [GraphicsMagick in FileMaker, part 21](https://www.mbsplugins.de/archive/2022-12-21/GraphicsMagick_in_FileMaker_pa/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

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

  
[GMImage.AddPathClosePath](GMImageAddPathClosePath.md) - [GMImage.AddPathCurvetoRel](GMImageAddPathCurvetoRel.md)

[HTML Version](GMImageAddPathCurvetoAbs.shtml)