Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 310 Bytes
<?php
$sur = new CairoImageSurface(CairoFormat::ARGB32, 10, 10);
$con = new CairoContext($sur);
$con->pushGroup();
$con->setSourceRgb(0,0,1);
$con->paint();
$con->popGroupToSource();
$con->setOperator(CairoOperator::SOURCE);
$con->paint();
$sur->writeToPng(dirname(__FILE__) . "/group-paint-php.png");
?>
Something went wrong with that request. Please try again.