Location: PHPKode > projects > O - OpenSource GroupWare > osgw/osgw/d_images.php
<?php
	//Used to create dynamic Images
	header("Content-type: image/png");
    	$string = "TEST";
    	$im     = imagecreatefrompng("images/button1.png");
 	$orange = imagecolorallocate($im, 220, 210, 60);
    	$px     = (imagesx($im) - 7.5 * strlen($string)) / 2;
    	imagestring($im, 3, $px, 9, $string, $orange);
    	$image = imagepng($im);
    	imagedestroy($im);
Return current item: O - OpenSource GroupWare