(PHP 4 >= 4.0.1, PHP 5, PHP 7)
imagecreatefromxpm — ���ļ��� URL ����һ����ͼ��
$filename
) : resourceimagecreatefromxpm() ����һͼ���ʶ���������˴Ӹ������ļ���ȡ�õ�ͼ��
Note: �˺��������� GD ���������� PHP �汾�п��á�
��������fopen ��װ�����ڴ˺����У� URL ����Ϊ�ļ������������ָ���ļ������ fopen()������ wapper �IJ�ͬ������μ� ֧�ֵ�Э��ͷ�װЭ����ע�����÷�������ṩ��Ԥ���������
Note: �˺���δ�� Windows ƽ̨��ʵ�֡�
filename
Path to the XPM image.
�ɹ���ͼ����Դ,ʧ�ܺ� FALSE
��
Example #1 Creating an image instance using imagecreatefromxpm()
<?php
// Check for XPM support
if(!(imagetypes() & IMG_XPM))
{
die('Support for xpm was not found!');
}
// Create the image instance
$xpm = imagecreatefromxpm('./example.xpm');
// Do image operations here
// PHP has no support for writing xpm images
// so in this case we save the image as a
// jpeg file with 100% quality
imagejpeg($xpm, './example.jpg', 100);
imagedestroy($xpm);
?>
Note: �˺��������� GD ���������� PHP �汾�п��á�
Note: �˺���δ�� Windows ƽ̨��ʵ�֡�