Scriptindex.de

[ Menü ]

Home
News
Scripts
Neuzugänge
Suchen
Bücher
Manuals

[ Inhalt ]

Script eintragen
Tutorial eintragen
Newsletter
Umfragen
Link zu uns
Werbung bei uns
Kontakt
Impressum

[ Statistik ]

Hits gesamt: 5203611
Hits Heute: 268
max. Hits (10.07.07): 6964
User Online: 24
Scripts: 2828

[ Partner ]

CodeBase
I.S.U.M.
LUG Bayreuth
PEAR NEWS
PHP Classes

[ Facebook ]

[ Eigene Domain? ]

[ Buchtipp ]

Die JavaScript Bibel
Die JavaScript Bibel

Manuals > PHP > image2wbmp

image2wbmp

(PHP 4 >= 4.0.5)

image2wbmp -- Output image to browser or file

Description

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

image2wbmp() creates the WBMP file in filename from the image image. The image argument is the return from imagecreate().

The filename argument is optional, and if left off, the raw image stream will be output directly. By sending an image/vnd.wap.wbmp content-type using header(), you can create a PHP script that outputs WBMP images directly.

Beispiel 1. image2wbmp() example

<?php

$file
= 'php.jpg';

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

?>

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

See also imagewbmp().


Copyright 1998 - 2009 by I.S.U.M.