image2wbmp

PHP 4 >= 4.0.5, PHP 5, PHP 7
image2wbmp - Output image to browser or file
Manual
Code Examples

image2wbmp( resource$image, [string$filename], [int$foreground] ): bool

image2wbmp outputs or save a WBMP version of the given image.

Parameters

image

An image resource, returned by one of the image creation functions, such as imagecreatetruecolor.

filename

Path to the saved file. If not given, the raw image stream will be output directly.

foreground

You can set the foreground color with this parameter by setting an identifier obtained from imagecolorallocate. The default foreground color is black.

Return Values

Returns true on success or false on failure.

Caution:

However, if libgd fails to output the image, this function returns true.

Related Functions

Example of image2wbmp

Show all examples for image2wbmp

PHP Version:


Function image2wbmp:

Image Processing and GD Functions

Most used PHP functions