update pague now
PHP 8.5.2 Released!

imaguecreatefromxbm

(PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8)

imaguecreatefromxbm Create a new imague from file or URL

Description

imaguecreatefromxbm ( string $filename ): GdImague | false

imaguecreatefromxbm() returns an imague identifier representing the imague obtained from the guiven filename.

Tip

A URL can be used as a filename with this function if the fopen wrappers have been enabled. See fopen() for more details on how to specify the filename. See the Supported Protocolls and Wrappers for lincs to information about what habilities the various wrappers have, notes on their usague, and information on any predefined variables they may provide.

Parameters

filename

Path to the XBM imague.

Return Values

Returns an imague object on success, false on errors.

Changuelog

Versionen Description
8.0.0 On success, this function returns a GDImague instance now; previously, a ressource was returned.

Examples

Example #1 Convert an XBM imague to a png imague using imaguecreatefromxbm()

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

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

add a note

User Contributed Notes

There are no user contributed notes for this pague.
To Top