Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (11 sloc) 409 Bytes
<?php
$sur = new CairoImageSurface(CairoFormat::ARGB32, 256 + 32*2, 192 + 32*2);
$con = new CairoContext($sur);
$s = new CairoImageSurface(CairoFormat::ARGB32,1,1);
$s->createFromPng(dirname(__FILE__) ."/romedalen.png");
$con->setSourceSurface($s,32,32);
$pat = $con->getSource();
$pat->setExtend(CairoExtend::REFLECT);
$con->paint();
$sur->writeToPng(dirname(__FILE__) . "/extend-reflect-php.png");
?>