php mage2wbmp 函数
Jun 13, 2016 am 11:22 AM
image2wbmp
(PHP 4中“= 4.0.5,PHP 5中)
image2wbmp - 输出图像浏览器或文件
报告错误描述
布尔image2wbmp($oimg[,$filename[,soruce]])
image2wbmp()输出或保存一个给定的图像WBMP版本。
报告错误参数
图片
图像资源,通过创造的图像功能,如,一返回imagecreatetruecolor()。
文件名
路径保存的文件。如果没有给出原始图像流将被直接输出。
开始
阈值介于0和255(含)。
报告错误返回值
返回TRUE,成功或失败则返回FALSE。
报告错误的例子
$file = 'php.png';
$image = imagecreatefrompng($file);
header('Content-type: ' . image_type_to_mime_type(IMAGETYPE_WBMP));
image2wbmp($image); // output the stream directly
imagedestroy($image);
?>

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

PHP 8.4 Installation and Upgrade guide for Ubuntu and Debian

How To Set Up Visual Studio Code (VS Code) for PHP Development

Sesame Open Door Official Website Sesame Open Door App Latest Entering Website

How do you parse and process HTML/XML in PHP?

The latest version of Sesame Open Door Official Website Entrance gate.io Official Website Link Address Entrance

PHP Program to Count Vowels in a String

gate.io sesame door download Chinese tutorial

Sesame Open Door Exchange official website gate.io exchange official website entrance
