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

search for in the

imagealphablending> <image_type_to_mime_type
Last updated: Fri, 03 Oct 2008

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

閾値。0 から 255 までの値 (両端を含みます)。

返り値

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

例1 image2wbmp() の例

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

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

注意

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

参考



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

imagealphablending> <image_type_to_mime_type
Last updated: Fri, 03 Oct 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites