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

search for in the

Gmagick> <jpeg2wbmp
[edit] Last updated: Fri, 17 May 2013

view this page in

png2wbmp

(PHP 4 >= 4.0.5, PHP 5)

png2wbmpConvertir un archivo de imagen PNG a un archivo de imagen WBMP

Descripción

bool png2wbmp ( string $pngname , string $wbmpname , int $dest_height , int $dest_width , int $threshold )

Convierte un archivo PNG a un archivo WBMP.

Parámetros

pngname

Ruta del archivo PNG.

wbmpname

Ruta del archivo WBMP de destino.

dest_height

Alto de la imagen de destino.

dest_width

Ancho de la imagen de destino.

threshold

Valor de umbral, entre 0 y 8 (inclusive).

Valores devueltos

Devuelve TRUE en caso de éxito o FALSE en caso de error.

Ejemplos

Ejemplo #1 Ejmplo de png2wbmp()

<?php
// Ruta al png objetivo
$ruta './prueba.png';

// Obtener las dimensiones de la imagen
$imagen getimagesize($ruta);

// Convertir la imagen
png2wbmp($ruta'./prueba.wbmp'$imagen[1], $imagen[0], 7);
?>

Notas

Nota: El soporte de WBMP sólo está disponible si PHP fue compilado con GD-1.8 or superior.

Ver también

  • jpeg2wbmp() - Convertir un archiov de imagen JPEG a un archivo de imagen WBMP



add a note add a note User Contributed Notes png2wbmp - [1 notes]
up
0
Window Bump Map
4 years ago
WBMP is NOT windows bitmap, it is wireless bitmap. just to state that nice and clearly.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites