CairoContext::moveTo
CairoContext::newSubPath
CairoContext
PHP Manual

# CairoContext::newPath

# cairo_new_path

(PECL cairo >= 0.1.0)

CairoContext::newPath -- cairo_new_path — The newPath purpose

### Description

Object oriented style (method):

public void CairoContext::newPath ( void )

Procedural style:

void cairo_new_path ( CairoContext `$context` )

Clears the current path. After this call there will be no path and no current point.

### Liste de paramètres

`context`

  A valid CairoContext object.

### Valeurs de retour

Aucune valeur n'est retournée.

### Exemples

Exemple #1 Object oriented style

`<?php
// [...]
CairoContext::newPath();`

Exemple #2 Procedural style

`<?php
// [...]
cairo_new_path($context);`

### Voir aussi

- CairoContext::appendPath - Appends a path to current path
- CairoContext::closePath - Closes the current path

CairoContext::moveTo
CairoContext::newSubPath
CairoContext
PHP Manual