CairoContext::__construct
Creates a new CairoContext
Beschreibung
public CairoContext::__construct
( CairoSurface $surface
)
Parameter-Liste
-
surface
-
A valid CairoSurface like CairoImageSurface or
CairoPdfSurface
Rückgabewerte
A CairoContext
Beispiele
Beispiel #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);
?>