PHP 4.0 Bug #7435: ImageWBMP doesn't work
| From: | raf at netmobil dot fr | Date: | Tue, 24 Oct 2000 15:17:14 +0000 |
| Subject: | PHP 4.0 Bug #7435: ImageWBMP doesn't work | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-35920@lists.php.net to get a copy of this message | ||
From: raf@netmobil.fr
Operating system: linux red hat 6.2
PHP version: 4.0.1pl2
PHP Bug Type: GD related
Bug description: ImageWBMP doesn't work
my code for use ImageWBMP
imagewbmp.wml
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="start" title="Rectangle">
<p align="center">
<img src="rectangle.php" alt="Rectangle"/>
</p>
</card>
</wml>
rectangle.php
<?
Header("Content-type: image/vnd.wap.wbmp");
$im = imagecreate(90, 90);
$white = ImageColorAllocate($im, 255,255,255);
$black = ImageColorAllocate($im, 0,0,0);
ImageRectangle($im, 5, 5, 85, 85, $black);
ImageWBMP($im);
ImageDestroy($im);
?>
--
Edit Bug report at: http://bugs.php.net/?id=7435&edit=1