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_
Ejemplo 1_ image2wbmp() example <?php
$file = 'php_jpg';
header('Content_type: ' _ image_type_to_mime_type(IMAGETYPE_WBMP));
image2wbmp($file); // output the stream directly
?> |
|
Nota:
WBMP support is only available if PHP was compiled
against GD_1_8 or later_
See also imagewbmp()_