|
użytkowników online: 79
|
OPINIE UŻYTKOWNIKÓW
|
Po wysłaniu do Dariusza problemu jeszcze nie opisanego w poradach, odpowiedź pojawia się na stronach już po 24 godzinach. To jedna z najważniejszych zalet serwisu! Za około 100 złotych rocznie mam profesjonalnego i doświadczonego konsultanta od technologii internetowych! Polecam serwis z poradami każdemu webmasterowi, niezależnie od stażu pracy i umiejętności.
Paweł Kowalski
grupa hiperMEDIA.pl
|
|
PODRĘCZNIK PHP 5.x, 4.x, 3.x - częściowo spolszczony / źródło: www.php.net
[Spis]
[A]
[B]
[C]
[D]
[E]
[F]
[G]
[H]
[I]
[J]
[K]
[L]
[M]
[N]
[O]
[P]
[Q]
[R]
[S]
[T]
[U]
[V]
[X]
[W]
[Z]
image2wbmp (PHP 4 >= 4.0.5, PHP 5) image2wbmp -- Output image to browser or file Descriptionint 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.
Przykład 1. image2wbmp() example |
<?php
$file = 'php.png';
$image = imagecreatefrompng($file);
header('Content-type: ' . image_type_to_mime_type(IMAGETYPE_WBMP));
image2wbmp($image); ?>
|
|
Notatka:
WBMP support is only available if PHP was compiled
against GD-1.8 or later.
See also imagewbmp().
User Contributed NotesThere are no user contributed notes for this page
|