php mage2wbmp function_PHP tutorial

WBOY
Release: 2016-07-20 11:06:34
Original
979 people have browsed it

image2wbmp
(PHP 4 = 4.0.5, PHP 5)

image2wbmp - Output Image Browser Report error description

boolean image2wbmp($oimg[,$filename[,soruce]])
image2wbmp() outputs or saves a WBMP version of a given image.
Reports wrong parameters 🎜> Image resources created by image functions, such as imagecreatetruecolor(), return a

file name

path to save the file. If no original image stream is given, it will be output directly.

Report error return value
Returns TRUE on success or failure
Reports error. Example


$file = 'php.png';$image = imagecreatefrompng($file);



header('Content-type: ' . image_type_to_mime_type(IMAGETYPE_WBMP));
image2wbmp($image); // output the stream directlyimagedestroy( $image);
?>

http://www.bkjia.com/PHPjc/445016.html
www.bkjia.com
true

http: //www.bkjia.com/PHPjc/445016.html

TechArticle
image2wbmp (PHP 4 = 4.0.5, PHP 5) image2wbmp - Output image browser or file reporting error Description boolean image2wbmp($oimg[,$filename[,soruce]]) image2wbmp() output...


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template