Source for file blend.php
Documentation is available at blend.php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker */
// $Id: blend.php,v 1.1 2008/05/26 03:03:26 firman Exp $
require_once 'Image/Tools.php';
// creates an intance of Blend tool object
$blend->set ('image1', dirname(__FILE__ ) . '/images/3dgirl.jpg');
$blend->set ('image2', dirname(__FILE__ ) . '/images/blending.png');
// apply the blend into the image
if (isset ($_GET['mode'])) {
$blend->set ('mode', $_GET['mode']);
// display the result image
$res = $blend->display (IMAGETYPE_JPEG );
if (PEAR ::isError ($res)) {
Documentation generated on Mon, 11 Mar 2019 15:22:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|