imagecreatefromxbm
(PHP 4 >= 4.0.1, PHP 5)
imagecreatefromxbm — Create a new image from file or URL
Descripción
imagecreatefromxbm() returns an image identifier representing the image obtained from the given filename.
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
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.
imagecreatefromxbm
