Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: image2wbmp - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

imagealphablending" width="11" height="7"/> <image_type_to_mime_type
Last updated: Sun, 23 Sep 2007

view this page in

image2wbmp

(PHP 4 >= 4.0.5, PHP 5)

image2wbmp — ブラウザまたはファイルにイメージを出力する

説明

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

image2wbmp() は、イメージ im から filename に WBMP ファイルを作成します。

パラメータ

image

imagecreatetruecolor() のような画像作成関数が返す画像リソース。

filename

保存られるファイルへのパス。指定しなかった場合は、生の画像ストリームが直接出力されます。

threshold

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

例 976. image2wbmp() の例

<?php

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

header('Content-type: ' . image_type_to_mime_type(IMAGETYPE_WBMP));
image2wbmp($image); // ストリームを直接出力します。

?>

注意

注意: WBMP サポートは、GD-1.8 以降で PHP をコンパイルした場合のみ利用可能です。

参考

imagewbmp()



add a note add a note User Contributed Notes
image2wbmp
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites