steffen: server/kolab-horde-framework/kolab-horde-framework/Image/tests .htaccess, NONE, 1.1 gd.php, NONE, 1.1 im.php, NONE, 1.1 svg.php, NONE, 1.1 swf.php, NONE, 1.1

cvs at intevation.de cvs at intevation.de
Fri Oct 14 16:33:08 CEST 2005


Author: steffen

Update of /kolabrepository/server/kolab-horde-framework/kolab-horde-framework/Image/tests
In directory doto:/tmp/cvs-serv28903/kolab-horde-framework/kolab-horde-framework/Image/tests

Added Files:
	.htaccess gd.php im.php svg.php swf.php 
Log Message:
Separated Horde Framework from kolab-resource-handlers

--- NEW FILE: .htaccess ---
Allow from all

--- NEW FILE: gd.php ---
<?php
/**
 * @package Horde_Image
 */

require_once dirname(__FILE__) . '/../Image/gd.php';

$image = &new Horde_Image_gd(array('height' => 400, 'width' => 400));

$image->rectangle(30, 30, 100, 60, 'black', 'yellow');
$image->roundedRectangle(30, 30, 100, 60, 15, 'black', 'red');
$image->circle(30, 30, 30, 'black', 'blue');
$image->polygon(array(array('x' => 30, 'y' => 50), array('x' => 40, 'y' => 60), array('x' => 50, 'y' => 40)), 'green', 'green');
$image->arc(100, 100, 100, 0, 70, 'black', 'green');
$image->brush(100, 300, 'red', 'circle');

$image->line(0, 200, 500, 200, 'darkblue', 2);
$image->line(200, 200, 200, 500, 'darkblue', 2);

$image->polyline(array(array('x' => 130, 'y' => 150), array('x' => 140, 'y' => 160), array('x' => 150, 'y' => 140)), 'black', 5);

$image->text('Hello World', 100, 100, 'arial', 'purple');

$image->display();

--- NEW FILE: im.php ---
<?php
/**
 * @package Horde_Image
 */

require_once dirname(__FILE__) . '/../Image/im.php';
$GLOBALS['conf']['image']['convert'] = trim(`which convert`);

$image = &new Horde_Image_im(array('height' => 400, 'width' => 400));

$image->rectangle(30, 30, 100, 60, 'black', 'yellow');
$image->roundedRectangle(30, 30, 100, 60, 15, 'black', 'red');
$image->circle(30, 30, 30, 'black', 'blue');
$image->polygon(array(array('x' => 30, 'y' => 50), array('x' => 40, 'y' => 60), array('x' => 50, 'y' => 40)), 'green', 'green');
$image->arc(100, 100, 100, 0, 70, 'black', 'green');
$image->brush(100, 300, 'red', 'circle');

$image->line(0, 200, 500, 200, 'darkblue', 2);
$image->line(200, 200, 200, 500, 'darkblue', 2);

$image->polyline(array(array('x' => 130, 'y' => 150), array('x' => 140, 'y' => 160), array('x' => 150, 'y' => 140)), 'black', 5);

$image->text('Hello World', 100, 100, 'arial', 'purple');

$image->display();

--- NEW FILE: svg.php ---
<?php
/**
 * @package Horde_Image
 */

require_once dirname(__FILE__) . '/../Image/svg.php';

$image = &new Horde_Image_svg(array('height' => 400, 'width' => 400));

$image->rectangle(30, 30, 100, 60, 'black', 'yellow');
$image->roundedRectangle(30, 30, 100, 60, 15, 'black', 'red');
$image->circle(30, 30, 30, 'black', 'blue');
$image->polygon(array(array('x' => 30, 'y' => 50), array('x' => 40, 'y' => 60), array('x' => 50, 'y' => 40)), 'green', 'green');
$image->arc(100, 100, 100, 0, 70, 'black', 'green');
$image->brush(100, 300, 'red', 'circle');

$image->line(0, 200, 500, 200, 'darkblue', 2);
$image->line(200, 200, 200, 500, 'darkblue', 2);

$image->polyline(array(array('x' => 130, 'y' => 150), array('x' => 140, 'y' => 160), array('x' => 150, 'y' => 140)), 'black', 5);

$image->text('Hello World', 100, 100, 'arial', 'purple');

$image->display();

--- NEW FILE: swf.php ---
<?php
/**
 * @package Horde_Image
 */

require_once dirname(__FILE__) . '/../Image/swf.php';

$image = &new Horde_Image_swf(array('height' => 400, 'width' => 400));

$image->rectangle(30, 30, 100, 60, 'black', 'yellow');
$image->roundedRectangle(30, 30, 100, 60, 15, 'black', 'red');
$image->circle(30, 30, 30, 'black', 'blue');
$image->polygon(array(array('x' => 30, 'y' => 50), array('x' => 40, 'y' => 60), array('x' => 50, 'y' => 40)), 'green', 'green');
$image->arc(100, 100, 100, 0, 70, 'black', 'green');
$image->brush(100, 300, 'red', 'circle');

$image->line(0, 200, 500, 200, 'darkblue', 2);
$image->line(200, 200, 200, 500, 'darkblue', 2);

$image->polyline(array(array('x' => 130, 'y' => 150), array('x' => 140, 'y' => 160), array('x' => 150, 'y' => 140)), 'black', 5);

$image->text('Hello World', 100, 100, 'arial', 'purple');

$image->display();





More information about the commits mailing list