GMImage.AddPathArcAbs
---------------------

Draw a single arc segment.

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

MBS( "GMImage.AddPathArcAbs"; ImageRef; radiusX; radiusY; xAxisRotation; largeArcFlag; sweepFlag; X; Y ) 

**MBS**( **"GMImage.AddPathArcAbs";** /\* Draw a single arc segment. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$radiusX**; /\* The radius in x direction.e.g. 100 \*/   
**$radiusY**; /\* The radius in y direction.e.g. 100 \*/   
**$xAxisRotation**; /\* The rotation value.e.g. 0 \*/   
**$largeArcFlag**; /\* Pass 1 or 0 to decide if you want to draw larger arcs.e.g. 0 \*/   
**$sweepFlag**; /\* Whether to draw the arc matching a clock-wise rotation.e.g. 0 \*/   
**$X**; /\* The x coordinate.e.g. 10 \*/   
**$Y**) /\* The y coordinate.e.g. 10 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| radiusX | The radius in x direction. | 100 |
| radiusY | The radius in y direction. | 100 |
| xAxisRotation | The rotation value. | 0 |
| largeArcFlag | Pass 1 or 0 to decide if you want to draw larger arcs. | 0 |
| sweepFlag | Whether to draw the arc matching a clock-wise rotation. | 0 |
| X | The x coordinate. | 10 |
| Y | The y coordinate. | 10 |

### Result

Returns OK or error.

### Description

Draw a single arc segment.  
Draws an elliptical arc from the current point to (x, y). The size and orientation of the ellipse are defined by two radii (radiusX, radiusY) and an xAxisRotation, which indicates how the ellipse as a whole is rotated relative to the current coordinate system. The center (cx, cy) of the ellipse is calculated automatically to satisfy the constraints imposed by the other parameters. largeArcFlag and sweepFlag contribute to the automatic calculations and help determine how the arc is drawn. If largeArcFlag is 1 then draw the larger of the available arcs. If sweepFlag is 1, then draw the arc matching a clock-wise rotation.  
With absolute coordinate.  
### See also

- [GMImage.AddPathArcRel](GMImageAddPathArcRel.md)
- [GMImage.AddPathCurvetoAbs](GMImageAddPathCurvetoAbs.md)
- [GMImage.AddPathLinetoAbs](GMImageAddPathLinetoAbs.md)
- [GMImage.AddPathMovetoAbs](GMImageAddPathMovetoAbs.md)

This function checks for a license.

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

  
[GMImage.AddNoiseChannel](GMImageAddNoiseChannel.md) - [GMImage.AddPathArcRel](GMImageAddPathArcRel.md)

[HTML Version](GMImageAddPathArcAbs.shtml)