imagecreatefromxpm

(PHP 4 >= 4.0.1, PHP 5)

imagecreatefromxpm -- 从 XPM 文件或 URL 新建一图像

说明

resource imagecreatefromxpm ( string filename )

imagecreatefromxpm() 返回一图像标识符,代表了从给定的文件名取得的图像。

注: 本函数仅在 PHP 与其捆绑的 GD 库一起编译时可用。

提示: 如果“fopen wrappers”已经被激活,则在本函数中可以把 URL 作为文件名来使用。请参阅 fopen() 函数来获取怎样指定文件名的详细信息以及支持 URL 封装协议的列表:附录 L

警告

Windows 版本的 PHP 在 4.3.0 版之前不支持本函数的远程文件访问,即使 allow_url_fopen 选项已被激活。


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