CairoContext::closePath
CairoContext::copyPage
CairoContext
PHP Manual

# CairoContext::__construct

(PECL cairo >= 0.1.0)

CairoContext::__construct — Creates a new CairoContext

### Description

CairoContext::__construct ( CairoSurface `$surface` )

Creates a new CairoContext object to draw

### Liste de paramètres

`surface`

  A valid CairoSurface like CairoImageSurface or CairoPdfSurface

### Valeurs de retour

A CairoContext

### Exemples

Exemple #1 CairoContext::__construct example

`<?php
// The surface to work on
$surface = new CairoImageSurface(CairoFormat::ARGB32, 50, 50);
// Create a new CairoContext for the CairoSurface
$context = new CairoContext($surface);
?>`

### Voir aussi

- Cairo::Method

CairoContext::closePath
CairoContext::copyPage
CairoContext
PHP Manual