程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 網頁編程 >> PHP編程 >> 關於PHP編程 >> php mage2wbmp 函數

php mage2wbmp 函數

編輯:關於PHP編程

image2wbmp
(PHP 4中“= 4.0.5,PHP 5中)

image2wbmp - 輸出圖像浏覽器或文件

報告錯誤描述
布爾image2wbmp($oimg[,$filename[,soruce]])
image2wbmp()輸出或保存一個給定的圖像WBMP版本。

報告錯誤參數

圖片
圖像資源,通過創造的圖像功能,如,一返回imagecreatetruecolor()。

文件名
路徑保存的文件。如果沒有給出原始圖像流將被直接輸出。

開始
阈值介於0和255(含)。


報告錯誤返回值
返回TRUE,成功或失敗則返回FALSE。

報告錯誤的例子

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

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


  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved