PHP image2wbmp - Output WBMP Image
image2wbmp — Outputs an image to the browser or a file in WBMP format.
Syntax
int image2wbmp ( resource $image [, string $filename [, int $threshold ]] )
image2wbmp() creates a WBMP file named filename from the image image. The image parameter is the return value of some image creation function, such as imagecreatetruecolor().
The filename parameter is optional; if omitted, the original image stream is output directly.
Example
PHP Image Processing