Location: PHPKode > projects > phpimageview > string_to_image.php
<?
	require("includes/lib.gen.inc.php");
	include_once("includes/class.ImageAddText.php");
	$config=array(
					"text" => $_GET['txt'],
					"text_colors" => "20 20 157", // RGB Seperated by spaces
					"ttf_path" => "/usr/local/share/fonts/Arial.ttf", // Full path to TTF font
					"image_loc" => "ivmedia/save.gif",
					"image_type" => "GIF", // PNG and GIF Supported
					// Optional arguments; default is center area on image
					"x_pos" => 5,
					"y_pos" => 12, 
				);
	$graphic = new img_add_txt($config);
	unset($graphic);
?>
Return current item: phpimageview