Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP image2wbmp - Output WBMP Image

PHP image2wbmp - Output WBMP Image

PHP Image ProcessingPHP Image Processing

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 ProcessingPHP Image Processing