Forum und email

image2wbmp

(PHP 4 >= 4.0.5, PHP 5)

image2wbmp — Output image to browser or file

설명

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

image2wbmp() outputs or save a WBMP version of the given image .

매개변수

font

내장 글꼴 1, 2, 3, 4, 5(큰 숫자가 큰 글꼴)나 imageloadfont()로 등록한 글꼴 식별자를 사용할 수 있습니다.

filename

Path to the saved file. If not given, the raw image stream will be outputed directly.

threshold

반환값

성공할 경우 TRUE를, 실패할 경우 FALSE를 반환합니다.

예제

Example#1 image2wbmp() example

<?php

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

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

?>

주의

Note: WBMP support is only available if PHP was compiled against GD-1.8 or later.

참고