RE: [PHP-DOC] Difference between imagewbmp and image2wbmp ?

From: Date: Fri, 10 Dec 2004 04:05:07 +0000
Subject: RE: [PHP-DOC] Difference between imagewbmp and image2wbmp ?
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969365414@lists.php.net to get a copy of this message
Dear Martijn, Here I paste the description from PHP Manual 15-04-2004, please download the new documentation. Hope it's helping you. Rgds, Prioritus "Rio Uniwaly" Yotto Putera IDoWhatIThinkIThinkWhatIBelieve www.rio.uniwaly.com IMAGE2WBMP (PHP 4 >= 4.0.5) image2wbmp -- Output image to browser or file Description int image2wbmp ( resource image [, string filename [, int threshold]]) image2wbmp() creates the WBMP file in filename from the image image. The image argument is the return from imagecreate(). The filename argument is optional, and if left off, the raw image stream will be output directly. By sending an image/vnd.wap.wbmp content-type using header(), you can create a PHP script that outputs WBMP images directly. Example 1. image2wbmp() example <?php $file = 'php.png'; $image = imagecreatefrompng($file); header('Content-type: ' . image_type_to_mime_type(IMAGETYPE_WBMP)); image2wbmp($image); // output the stream directly ?> Note: WBMP support is only available if PHP was compiled against GD-1.8 or later. IMAGEWBMP (PHP 3>= 3.0.15, PHP 4 >= 4.0.1) imagewbmp -- Output image to browser or file Description int imagewbmp ( resource image [, string filename [, int foreground]]) imagewbmp() creates the WBMP file in filename from the image image. The image argument is the return from the imagecreate() function. The filename argument is optional, and if left off, the raw image stream will be output directly. By sending an image/vnd.wap.wbmp content-type using header(), you can create a PHP script that outputs WBMP images directly. Note: WBMP support is only available if PHP was compiled against GD-1.8 or later. Using the optional foreground parameter, you can set the foreground color. Use an identifier obtained from imagecolorallocate(). The default foreground color is black. Thanks Rio Uniwaly -----Original Message----- From: Martijn Pannevis [mailto:martijn@panman.nl] Sent: Friday, December 10, 2004 10:16 AM To: phpdoc@lists.php.net Subject: [PHP-DOC] Difference between imagewbmp and image2wbmp ? Hi! What is the difference between image2wbmp and imagewbmp? And, shouldn't this be in the manual? thanx! Martijn Pannevis, The Netherlands. Disclaimer: This email has been scanned by Indosat's IMSS1

---------------------lndosat Mail------------------- (on scorpion) Disclaimer: This email has been scanned by Indosat VirusWall system !!! Indosat Mail Administrator ---------------------------------------------------------
« previous php.doc (#969365414) next »