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

search for in the

imagecreatefromxpm> <imagecreatefromwbmp
Last updated: Fri, 19 Jun 2009

view this page in

imagecreatefromxbm

(PHP 4 >= 4.0.1, PHP 5)

imagecreatefromxbmCreate a new image from file or URL

Descripción

resource imagecreatefromxbm ( string $filename )

imagecreatefromxbm() returns an image identifier representing the image obtained from the given filename.

Tip

Puede usar una URL como nombre de archivo con esta función si los fopen wrappers han sido activados. Consulte fopen() para más detalles sobre cómo especificar el nombre de fichero y Lista de Protocolos/Envolturas Soportadas una lista de protocolos URL soportados

Lista de parámetros

filename

Path to the XBM image.

Valores retornados

Returns an image resource identifier on success, FALSE on errors.

Ejemplos

Example #1 Convert an XBM image to a png image using imagecreatefromxbm()

<?php
// Load the xbm file
$xbm imagecreatefromxbm('./example.xbm');

// Convert it to a png file
imagepng($xbm'./example.png');
imagedestroy($xbm);
?>

Notes

Warning

Versiones de PHP para Windows anteriores a 4.3.0, no soportan el acceso remoto a archivos para esta función, no funcionará ni activando siquiera allow_url_fopen.



add a note add a note User Contributed Notes
imagecreatefromxbm
There are no user contributed notes for this page.

imagecreatefromxpm> <imagecreatefromwbmp
Last updated: Fri, 19 Jun 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites