svn: /phpdoc/en/trunk/reference/image/functions/ imagecreatefromwbmp.xml

From: Date: Sat, 16 Jan 2010 15:42:58 +0000
Subject: svn: /phpdoc/en/trunk/reference/image/functions/ imagecreatefromwbmp.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-5869@lists.php.net to get a copy of this message
yago Sat, 16 Jan 2010 15:42:58 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=293621 Log: Multiple errors in the PHP Example. Changed paths: U phpdoc/en/trunk/reference/image/functions/imagecreatefromwbmp.xml Modified: phpdoc/en/trunk/reference/image/functions/imagecreatefromwbmp.xml =================================================================== --- phpdoc/en/trunk/reference/image/functions/imagecreatefromwbmp.xml 2010-01-16 15:41:58 UTC (rev 293620) +++ phpdoc/en/trunk/reference/image/functions/imagecreatefromwbmp.xml 2010-01-16 15:42:58 UTC (rev 293621) @@ -54,11 +54,11 @@ if(!$im) { /* Create a blank image */ - $im = imagecreatetruecolor (20, 20); + $im = imagecreatetruecolor(150, 30); $bgc = imagecolorallocate($im, 255, 255, 255); $tc = imagecolorallocate($im, 0, 0, 0); - imagefilledrectangle($im, 0, 0, 10, 10, $bgc); + imagefilledrectangle($im, 0, 0, 150, 30, $bgc); /* Output an error message */ imagestring($im, 1, 5, 5, 'Error loading ' . $imgname, $tc); @@ -67,11 +67,11 @@ return $im; } -header('Content-Type: image/png'); +header('Content-Type: ' . image_type_to_mime_type(IMAGETYPE_WBMP)); -$img = LoadPNG('bogus.image'); +$img = LoadWBMP('bogus.image'); -imagwbmp($img); +imagewbmp($img); imagedestroy($img); ?> ]]>

« previous php.doc.cvs (#5869) next »