[Mapbender-commits] r1631 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Aug 8 05:33:23 EDT 2007


Author: christoph
Date: 2007-08-08 05:33:23 -0400 (Wed, 08 Aug 2007)
New Revision: 1631

Modified:
   trunk/mapbender/http/php/createImageFromText.php
Log:
correct capitalization of omage function names

Modified: trunk/mapbender/http/php/createImageFromText.php
===================================================================
--- trunk/mapbender/http/php/createImageFromText.php	2007-08-08 09:32:08 UTC (rev 1630)
+++ trunk/mapbender/http/php/createImageFromText.php	2007-08-08 09:33:23 UTC (rev 1631)
@@ -26,14 +26,13 @@
 $rect_w = 7 * mb_strlen($text) + $text_x;
 $rect_h = 14 + $text_y;
 
-$im = ImageCreate($rect_w, $rect_h);
-$white = ImageColorAllocate($im, 255, 255, 255);
-$black = ImageColorAllocate($im, 0, 0, 0);
+$im = imagecreate($rect_w, $rect_h);
+$white = imagecolorallocate($im, 255, 255, 255);
+$black = imagecolorallocate($im, 0, 0, 0);
 imagestring($im, 2, $text_x, $text_y, $text, $black);
 $im = imagerotate($im, $angle, -1);
 
 Header("Content-type:image/png");
 imagepng($im);
-
-ImageDestroy($im);
+imagedestroy($im);
 ?>



More information about the Mapbender_commits mailing list