From 8e128660961ffd04cb2bc76b7751942873fea699 Mon Sep 17 00:00:00 2001 From: Yago Ferrer Date: Sat, 16 Jan 2010 15:42:58 +0000 Subject: [PATCH] Multiple errors in the PHP Example. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@293621 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/image/functions/imagecreatefromwbmp.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/reference/image/functions/imagecreatefromwbmp.xml b/reference/image/functions/imagecreatefromwbmp.xml index 27979f5792..30d8003624 100644 --- a/reference/image/functions/imagecreatefromwbmp.xml +++ b/reference/image/functions/imagecreatefromwbmp.xml @@ -54,11 +54,11 @@ function LoadWBMP($imgname) 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 @@ function LoadWBMP($imgname) 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); ?> ]]>