(PHP 4 >= 4.0.5, PHP 5)
image2wbmp — Envia uma imagem para o browser ou arquivo
image2wbmp() mostra ou salva uma versão WBMP de uma dada image .
An image resource, returned by one of the image creation functions, such as imagecreatetruecolor().
Caminho para salvar o arquivo. Se não informado, a imagem será mostrada diretamente.
Retorna TRUE em caso de sucesso ou FALSE em falhas.
Exemplo #1 Exemplo image2wbmp()
<?php
$file = 'php.png';
$image = imagecreatefrompng($file);
header('Content-type: ' . image_type_to_mime_type(IMAGETYPE_WBMP));
image2wbmp($image); // output the stream directly
?>
Nota: Suporte a WBMP esta disponível somente se o PHP foi compilado com a GD-1.8 ou posterior.