GMImage.AddPathLinetoVerticalRel
--------------------------------

Draws a vertical line from the current point (cpx, cpy) to (cpx, y).

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

MBS( "GMImage.AddPathLinetoVerticalRel"; ImageRef; Y ) 

**MBS**( **"GMImage.AddPathLinetoVerticalRel";** /\* Draws a vertical line from the current point (cpx, cpy) to (cpx, y). \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$Y**) /\* The new relative y coordinate.e.g. 100 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| Y | The new relative y coordinate. | 100 |

### Result

Returns OK or error.

### Description

Draws a vertical line from the current point (cpx, cpy) to (cpx, y).   
GMImage.AddPathLinetoVerticalRel indicates that relative coordinates are supplied. At the end of the command, the new current point becomes (cpx, y) for the final value of y.  
### See also

- [GMImage.AddPathLinetoHorizontalRel](GMImageAddPathLinetoHorizontalRel.md)
- [GMImage.AddPathLinetoVerticalAbs](GMImageAddPathLinetoVerticalAbs.md)

This function checks for a license.

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

  
[GMImage.AddPathLinetoVerticalAbs](GMImageAddPathLinetoVerticalAbs.md) - [GMImage.AddPathMovetoAbs](GMImageAddPathMovetoAbs.md)

[HTML Version](GMImageAddPathLinetoVerticalRel.shtml)