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

search for in the

ImageMagick> <jpeg2wbmp
Last updated: Fri, 14 Aug 2009

view this page in

png2wbmp

(PHP 4 >= 4.0.5, PHP 5)

png2wbmpConvertit une image PNG en image WBMP

Description

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

Convertit une image PNG en image WBMP.

Liste de paramètres

pngname

Chemin vers le fichier PNG.

wbmpname

Chemin vers le fichier final WBMP.

dest_height

Hauteur de l'image de destination.

dest_width

Largeur de l'image de destination.

threshold

Valeur du seuil, entre 0 et 8 inclus.

Valeurs de retour

Cette fonction retourne TRUE en cas de succès, FALSE en cas d'échec.

Exemples

Exemple #1 Exemple avec png2wbmp()

<?php
// Chemin vers la cible png
$path './test.png';

// Récupération de la taille de l'image
$image getimagesize($path);

// Convertion de l'image
png2wbmp($path'./test.wbmp'$image[1], $image[0], 7);
?>

Notes

Note: Le support WBMP n'est disponible que si PHP a été compilé avec GD-1.8 ou supérieur.

Voir aussi



add a note add a note User Contributed Notes
png2wbmp
Window Bump Map
30-Jun-2008 05:41
WBMP is NOT windows bitmap, it is wireless bitmap. just to state that nice and clearly.

ImageMagick> <jpeg2wbmp
Last updated: Fri, 14 Aug 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites