Home > PHP > Function > GD > imagecreatefromxpm()

imagecreatefromxpm()

imagecreatefromxpm - Create a new image from file or URL

Syntax

resource imagecreatefromxpm (string $filename)

Arguments

  • filename - Path to the XPM image.

Description

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

Version

PHP 4.0.1, 5

Return value

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